FROM python:3.11-slim

WORKDIR /app

COPY requirements-web.txt .
RUN pip install --no-cache-dir -r requirements-web.txt

COPY web_api.py .
COPY Restore_Colorize.json .
COPY Create_Image.json .

RUN mkdir -p static output

EXPOSE 8000

CMD ["python", "web_api.py"]