init
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# 安装vim工具
|
||||
RUN apk add --no-cache vim
|
||||
|
||||
# 创建配置文件目录
|
||||
RUN mkdir -p /etc/nginx/conf.d
|
||||
|
||||
# 复制静态文件
|
||||
COPY scratch-gui/build /usr/share/nginx/html
|
||||
|
||||
# 复制默认配置文件
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user