Files
geg-gas-web/Dockerfile

19 lines
508 B
Docker

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