VoiceToWrite / Dockerfile
Seicas's picture
Update Dockerfile
a80c513 verified
raw
history blame contribute delete
526 Bytes
FROM python:3.9-slim
WORKDIR /app
# Sistem bağımlılıklarını yükle
RUN apt-get update && apt-get install -y \
build-essential \
libsndfile1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Python bağımlılıklarını yükle
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
&& python -m spacy download tr_core_news_sm
# Uygulama kodunu kopyala
COPY . .
# Ortam değişkenleri
ENV PYTHONPATH=/app
ENV ENVIRONMENT=production
# Uygulamayı başlat
CMD ["python", "app.py"]