Spaces:
Sleeping
Sleeping
File size: 511 Bytes
dd1a934 b0c3821 dd1a934 b0c3821 f747801 b0c3821 dd1a934 b0c3821 f747801 dd1a934 b0c3821 dd1a934 b0c3821 dd1a934 b0c3821 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.9-slim
WORKDIR /app
# Copy only the requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY wm_interactive/ ./wm_interactive/
COPY run.py .
# Create necessary directories
RUN mkdir -p wm_interactive/static/hf_cache
# Set environment variables
ENV PYTHONPATH=/app
ENV FLASK_APP=run.py
# Expose the port the app runs on
EXPOSE 7860
# Command to run the application
CMD ["python", "run.py"] |