增加编译 Docker 镜像的功能,用于无网环境

This commit is contained in:
wuduoyi 2020-12-14 16:14:17 +08:00
parent acf8f568dc
commit d09e34b5a9
2 changed files with 18 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
node_modules/
public/
.git/
.github/
.vscode/

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:12
WORKDIR /app
COPY . .
RUN npm i \
&& ./node_modules/.bin/fis3 release -cd ./public
EXPOSE 8888
CMD ["npm", "start"]