Spaces:
Runtime error
Runtime error
# Use the official Python image as a base | |
FROM python:3.9-slim | |
# Set environment variables | |
ENV PYTHONDONTWRITEBYTECODE=1 | |
ENV PYTHONUNBUFFERED=1 | |
# Set work directory | |
WORKDIR /app | |
# Install dependencies | |
COPY requirements.txt . | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
# Copy project | |
COPY . . | |
CMD ["bash", "-c", "python preprocess.py && python app.py"] | |