Create Dockerfile for server in production

master
Raymonzut 5 years ago
parent b9c54d9470
commit df5359fad9
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 13
      server/Dockerfile

@ -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
Loading…
Cancel
Save