fix: 前端自动化部署优化

This commit is contained in:
wood911010 committed 2025-08-09 22:40:48 +08:00
1 parent 6bcd8f4d09
commit 246d49a038
5 files changed
+26 -5

No files matched your search

+3 -2
View File
@@ -22,8 +22,9 @@ FROM nginx:alpine
# Copy built assets
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy custom nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy nginx configuration template and entrypoint to render from env
COPY nginx.conf /etc/nginx/conf.d/default.conf.template
COPY frontend/entrypoint/10-envsubst.sh /docker-entrypoint.d/10-envsubst.sh
# Create log directory
RUN mkdir -p /var/log/nginx