19 lines
337 B
Docker
19 lines
337 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# 의존성 설치
|
|
COPY ./rss-collector/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# 공통 모듈 복사
|
|
COPY ./shared /app/shared
|
|
|
|
# RSS Collector 코드 복사
|
|
COPY ./rss-collector /app
|
|
|
|
# 환경변수
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# 실행
|
|
CMD ["python", "rss_collector.py"] |