prepare for docker

This commit is contained in:
LouisLam
2021-07-11 14:20:31 +08:00
parent 5f89940ab6
commit ae07cd9c35
6 changed files with 32 additions and 7 deletions

10
dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:14
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
EXPOSE 3001
VOLUME ["/app/data"]
CMD ["npm", "run", "start-server"]