You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
390 B
18 lines
390 B
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy full requirements for both Flask + Celery + BookScraper
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
# Copy entire application (including .env so load_dotenv works)
|
|
COPY . /app
|
|
|
|
# Ensure Celery + BookScraper modules load correctly
|
|
ENV PYTHONPATH=/app
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["python", "app.py"]
|