Create Dockerfile for server in production
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user