add Dockerfile

This commit is contained in:
Vinlic 2024-03-10 16:16:08 +08:00
parent 3dbabb0d47
commit dc7a953e4f
2 changed files with 20 additions and 0 deletions

9
.dockerignore Normal file
View File

@ -0,0 +1,9 @@
logs
dist
doc
node_modules
.vscode
.git
.gitignore
README.md
*.tar.gz

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:lts
WORKDIR /app
COPY . /app
RUN npm i --registry http://registry.npmmirror.com && npm run build
EXPOSE 8000
CMD ["npm", "start"]