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.
besure_web/Dockerfile

21 lines
412 B
Docker

# 使用轻量级的 Nginx 镜像
FROM nginx:alpine
ARG NGINX_CONF=nginx.conf
RUN rm -f /etc/nginx/conf.d/default.conf
COPY ${NGINX_CONF} /etc/nginx/conf.d/default.conf
COPY dist /usr/share/nginx/html
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"]