🐳 Docker configuration

This commit is contained in:
2021-08-31 09:32:39 -07:00
parent 8dc5daf3e0
commit 9c13c41e02
5 changed files with 1225 additions and 527 deletions

View File

@@ -1,8 +1,7 @@
FROM node:lts-alpine
FROM node:12-alpine
# Working directory
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci --silent
@@ -15,5 +14,6 @@ ENV NODE_ENV=production
RUN npm run build \
&& npm prune
EXPOSE 3080
# Start server
CMD ["npm", "start"]
CMD ["npm", "start"]