Create Dockerfile for server in production

This commit is contained in:
Raymonzut
2020-05-11 15:41:34 +02:00
parent b9c54d9470
commit df5359fad9
+13
View File
@@ -0,0 +1,13 @@
FROM node:latest
WORKDIR /usr/src/server
COPY package*.json ./
RUN npm ci --only=production
COPY . .
CMD [ "node", "index.js" ]
EXPOSE 5000