Files
geg-gas-web/Dockerfile

17 lines
524 B
Docker
Raw Normal View History

# 使用 Node.js 18 作为基础镜像
2025-10-10 09:16:54 +08:00
#FROM --platform=linux/arm64 docker.xuanyuan.run/library/node:20-alpine
FROM docker.tanuki.vip/nginx-amd64:1.29.0
MAINTAINER fucai
2025-10-10 09:16:54 +08:00
WORKDIR /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf # 拷贝 nginx 配置文件
COPY ./dist/ /usr/share/nginx/html/ # 拷贝 dist 目录下的文件到 nginx 的 html 目录下
2025-10-10 09:16:54 +08:00
EXPOSE 8080
2025-10-10 09:16:54 +08:00
VOLUME ["/etc/nginx/nginx.conf", "/usr/share/nginx/html"]
2025-10-10 09:16:54 +08:00
CMD ["nginx","-g","daemon off;"]
2025-10-10 09:16:54 +08:00
# docker build -t itc-web:1.0.0 .