Files
Youtube2Feed/Dockerfile
salvacybersec abe170a1f8 first commit
2025-11-13 03:25:21 +03:00

27 lines
536 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM python:3.10-slim
# Çalışma dizinini ayarla
WORKDIR /app
# Sistem bağımlılıkları
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Python bağımlılıklarını kopyala ve kur
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# SpaCy modelini indir
RUN python -m spacy download en_core_web_sm
# Uygulama kodunu kopyala
COPY . .
# Veri dizinlerini oluştur
RUN mkdir -p data output
# Varsayılan komut (web server)
CMD ["python", "app.py"]