Added Dockerfile.

This commit is contained in:
moonstar-x 2023-05-30 01:26:55 -05:00
parent 18e7f6f709
commit a5180339a1
2 changed files with 20 additions and 0 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
# Ignore everything by default
*
# Allow the public project files.
!src
!Dockerfile
!package*.json
!README.md

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node:16.6.1-alpine
WORKDIR /opt/app
COPY package*.json ./
RUN npm ci --only=prod
COPY . .
ENV NODE_ENV=production
ENV FILES_DIR=NULL
CMD ["npm", "start"]