[new] Support docker

This commit is contained in:
2020-12-20 21:29:22 +00:00
parent b08090795b
commit c95135bb19
6 changed files with 50 additions and 5 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node:lts-alpine3.12
ENV NODE_ENV=production
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install --production
COPY . .
EXPOSE 8080
CMD [ "node", "server.js" ]