peertopeer / Dockerfile
triflix's picture
Update Dockerfile
db07b66 verified
raw
history blame contribute delete
392 Bytes
FROM python:3.11-slim
# Install system dependencies needed for Jinja2
RUN apt-get update && apt-get install -y build-essential libffi-dev libssl-dev && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]