Files
Puechberty Arthur a72f502342 first commit
2026-03-30 20:42:29 +02:00

24 lines
545 B
Docker

FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# system deps for building some packages
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# copy requirements first for caching
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
# copy app
COPY . /app
EXPOSE 5000
# default command runs the webapp; docker-compose will override for scraper service
CMD ["python", "webapp.py"]