This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Dockerfile.frontend
FROM nginx:alpine
# 复制前端文件和配置
COPY front/ /usr/share/nginx/html/
# 复制Nginx配置
COPY nginx.conf /etc/nginx/nginx.conf
# 暴露80端口(容器内)
EXPOSE 80
# 使用Nginx默认命令
CMD ["nginx", "-g", "daemon off;"]