USMLEStep1Prep / Dockerfile
Nahiyan14's picture
Update Dockerfile
0996d23 verified
raw
history blame contribute delete
337 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Make port 7860 available (Hugging Face default)
ENV PORT=7860
# Run the application using gunicorn
CMD gunicorn --bind 0.0.0.0:${PORT} app:app