Experimenting with docker and configuration

This commit is contained in:
2021-02-04 20:52:09 +11:00
parent a1c76a23be
commit e5a81c79e1
8 changed files with 281 additions and 14 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:15
# Change working directory
WORKDIR "/app"
# Copy package.json and package-lock.json
COPY package*.json ./
# Install npm production packages
RUN npm install
COPY . /app
EXPOSE 3000
USER node
ENTRYPOINT ["npm", "start"]