Files
001code-html--cocos/Dockerfile
2026-09-07 09:55:36 +08:00

17 lines
312 B
Docker

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;"]