workflow / Dockerfile
triflix's picture
Create Dockerfile
1109a60 verified
raw
history blame contribute delete
254 Bytes
FROM python:3.10-slim
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/requirements.txt
WORKDIR /code
COPY app.py .
COPY templates ./templates
ENV PYTHONUNBUFFERED=1
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]