wm-detection / Dockerfile
TheFrenchDemos's picture
implemented core generation + detection
f747801
raw
history blame contribute delete
511 Bytes
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"]