Files
website/Dockerfile

16 lines
287 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Clean up and install requirements
RUN rm -rf /app/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY website/ ./website/
COPY requirements.txt .
EXPOSE 5000
CMD ["python", "website/app.py"]