Spectra / Dockerfile
AmbitiousPotato's picture
Rename dockerFile to Dockerfile
92c340a verified
raw
history blame contribute delete
452 Bytes
FROM python:3.11-slim
# Use a lightweight Python 3.11 base image
WORKDIR /app
# All subsequent commands run in /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install dependencies BEFORE copying code
# (Docker caches this layer — faster rebuilds)
COPY . .
# Copy all your files into the container
EXPOSE 7860
# Must match app_port in README.md
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]