mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
增加编译 Docker 镜像的功能,用于无网环境
This commit is contained in:
parent
acf8f568dc
commit
d09e34b5a9
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
node_modules/
|
||||
public/
|
||||
.git/
|
||||
.github/
|
||||
.vscode/
|
13
Dockerfile
Normal file
13
Dockerfile
Normal 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"]
|
||||
|
Loading…
Reference in New Issue
Block a user