refactor: nginx & Dockerfile

This commit is contained in:
OhSeongRak
2025-06-18 09:28:08 +09:00
parent d39180d276
commit d7d13d2dba
2 changed files with 34 additions and 60 deletions
@@ -41,12 +41,9 @@ ARG EXPORT_PORT=18080
# Copy built files from builder stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
# Copy nginx configuration (이미 포트가 18080으로 설정됨)
COPY deployment/container/nginx.conf /etc/nginx/conf.d/default.conf
# Create nginx configuration with custom port
RUN sed -i "s/80/${EXPORT_PORT}/g" /etc/nginx/conf.d/default.conf
EXPOSE ${EXPORT_PORT}
CMD ["nginx", "-g", "daemon off;"]