You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
490 B
Docker

# 使用轻量级的 Nginx 镜像
FROM nginx:alpine
# 复制自定义 Nginx 配置(如果有)
RUN rm -f /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 将本地 dist 目录复制到容器中
COPY dist /usr/share/nginx/html
# 暴露 8088 端口
EXPOSE 8088
# 创建启动脚本
RUN echo -e '#!/bin/sh\n\
echo "Waiting for MySQL/Redis/MinIO to start..."\n\
sleep 15\n\
nginx -g "daemon off;"' > /start.sh && \
chmod +x /start.sh
CMD ["/start.sh"]