docker-space / Dockerfile
OsamaBinLikhon's picture
Initial deployment: Flask app with core features
d3c95f5 verified
raw
history blame contribute delete
406 Bytes
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY app ./app
# Expose port
EXPOSE 7860
# Set port environment variable (Hugging Face Spaces uses port 7860)
ENV PORT=7860
# Run with gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app.main:app"]