Skip to content

Commit c0105f0

Browse files
committed
feat: 웹서버(nginx) 도커파일 작성
1 parent bd9a573 commit c0105f0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

services/nginx/Dockerfile.local

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM backend:latest AS backend_build
2+
3+
FROM nginx:alpine
4+
5+
# 필요한 설정 파일 복사
6+
COPY services/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
7+
8+
# 빌드된 프론트엔드 파일 복사
9+
COPY --from=backend_build /app/public /usr/share/nginx/html
10+
11+
# SSL 설정 및 권한 조정
12+
RUN mkdir -p /etc/nginx/ssl && \
13+
chown -R nginx:nginx /etc/nginx/ssl && \
14+
chmod 700 /etc/nginx/ssl

0 commit comments

Comments
 (0)