storandom/Dockerfile
2025-04-17 07:04:59 +02:00

19 lines
388 B
Docker

# Dockerfile
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project (app folder inside container too)
COPY . .
# Expose port
EXPOSE 8000
# Run the server from within the "app" package
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]