Trying to get docker to work

This commit is contained in:
2021-02-04 04:17:39 +11:00
parent 534856ed1f
commit 68751fcd6c
2 changed files with 19 additions and 1 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 --production
COPY . /app
EXPOSE 3100
USER node
ENTRYPOINT ["npm", "start"]