Spaces:
Sleeping
Sleeping
File size: 526 Bytes
942216e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use Python 3.11 image
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/storage/contexts /app/storage/students /app/storage/progress/assessments /app/storage/progress/skills \
&& chmod -R 777 /app/storage
RUN mkdir -p /app/static \
&& cp -r /app/src/static/* /app/static/ 2>/dev/null || true \
&& chmod -R 755 /app/static
ENV PORT=7860
ENV PYTHONPATH=/app
EXPOSE 7860
CMD ["python", "main.py"]
|