File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- # ✅ 최신 LTS 기반 (debian bookworm )
2- FROM python:3.11-slim
1+ # bookworm으로 핀 고정 (moving target 방지 )
2+ FROM python:3.11-slim-bookworm
33
44ENV DEBIAN_FRONTEND=noninteractive
55WORKDIR /usr/src/app
66
7- # 1) 시스템 패키지 (C/Java 컴파일용 )
7+ # C/Java 컴파일러 설치 (gcc + JDK 17 )
88RUN 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
1313COPY requirements.txt ./
1414RUN pip install --no-cache-dir -r requirements.txt
1515
16- # 3) 앱 코드/스크립트
16+ # App
1717COPY server/app.py .
1818COPY server/code ./code
1919COPY docker/python/entrypoint.sh ./entrypoint_python.sh
2020COPY docker/java/entrypoint.sh ./entrypoint_java.sh
21- # (C 스크립트가 있다면 추가) COPY docker/c/entrypoint.sh ./entrypoint_c.sh
2221RUN chmod +x entrypoint_*.sh
2322
24- # 4) 런타임 설정
2523ENV PYTHONUNBUFFERED=1
2624EXPOSE 5050
2725CMD ["python" , "-Xutf8" , "app.py" ]
You can’t perform that action at this time.
0 commit comments