zeroshot-classifier / Dockerfile
service-internal's picture
Update Dockerfile
c318e72 verified
raw
history blame
428 Bytes
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install dependencies
RUN apt-get update && apt-get install -y git && apt-get clean
# Set working directory
WORKDIR /app
# Copy files
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY main.py .
# Run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]