Spaces:
Sleeping
Sleeping
FROM python:3.9-slim | |
WORKDIR /app | |
# Set timezone if needed | |
ENV TZ=Europe/Paris | |
RUN apt-get update && apt-get install -y tzdata \ | |
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
RUN apt-get update && apt-get install -y build-essential curl git \ | |
&& rm -rf /var/lib/apt/lists/* | |
COPY requirements.txt ./ | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY src/ ./src/ | |
EXPOSE 7860 | |
ENV HOME=/app | |
# Make sure your app directory exists (optional) | |
RUN mkdir -p /app/submissions | |
# Entry point to run your gradio app script | |
ENTRYPOINT ["python", "src/streamlit_app.py"] | |