Spaces:
Runtime error

Training-AI / Dockerfile
djaydenvanhattem3's picture
Create Dockerfile
e8e1617 verified
Raw History Blame Contribute Delete
427 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# System deps (optioneel maar vaak nodig)
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY requirements.txt .
# Install Python deps
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY . .
# Expose port
EXPOSE 8000
# Run app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]