Skip to content

Commit 6071228

Browse files
authored
Update Dockerfile
1 parent 81c0e86 commit 6071228

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
# ✅ 최신 LTS 기반 (debian bookworm)
2-
FROM python:3.11-slim
1+
# bookworm으로 핀 고정 (moving target 방지)
2+
FROM python:3.11-slim-bookworm
33

44
ENV DEBIAN_FRONTEND=noninteractive
55
WORKDIR /usr/src/app
66

7-
# 1) 시스템 패키지 (C/Java 컴파일용)
7+
# C/Java 컴파일러 설치 (gcc + JDK 17)
88
RUN apt-get update && apt-get install -y --no-install-recommends \
99
gcc g++ make openjdk-17-jdk-headless \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
# 2) 파이썬 의존성
12+
# Python deps
1313
COPY requirements.txt ./
1414
RUN pip install --no-cache-dir -r requirements.txt
1515

16-
# 3) 앱 코드/스크립트
16+
# App
1717
COPY server/app.py .
1818
COPY server/code ./code
1919
COPY docker/python/entrypoint.sh ./entrypoint_python.sh
2020
COPY docker/java/entrypoint.sh ./entrypoint_java.sh
21-
# (C 스크립트가 있다면 추가) COPY docker/c/entrypoint.sh ./entrypoint_c.sh
2221
RUN chmod +x entrypoint_*.sh
2322

24-
# 4) 런타임 설정
2523
ENV PYTHONUNBUFFERED=1
2624
EXPOSE 5050
2725
CMD ["python", "-Xutf8", "app.py"]

0 commit comments

Comments
 (0)