o2o-negosium-original/schedules/anchoring/Dockerfile
민헌 ffa7dda493 fix(anchoring): 이미지에 config.toml 미포함 — 런타임 마운트 전환·.dockerignore 신설
- Dockerfile 의 COPY config.toml* 제거: 실 시크릿이 이미지 레이어에 구워지는 문제 해소
- .dockerignore 신설로 빌드 컨텍스트에서도 config.toml 차단(이중 방어)
- docker-compose 가 ./config.toml 을 읽기 전용 마운트 — up 전에 파일이 있어야 함
  (없으면 docker 가 디렉터리를 생성해 기동 실패 — 주석·런북에 명시)
- 설정 변경 반영이 리빌드 없이 restart 로 단순화

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 11:16:45 +09:00

15 lines
356 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# config.toml 은 이미지에 넣지 않는다(시크릿이 이미지 레이어에 남음) — 런타임 마운트 또는 env 로 주입
COPY src ./src
ENV PYTHONPATH=/app/src \
PYTHONUNBUFFERED=1
CMD ["python", "-m", "anchoring.main"]