UpFast/Dockerfile

14 lines
348 B
Docker
Raw Normal View History

2023-03-25 21:12:55 +01:00
FROM python:3.10-alpine
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apk add --no-cache --update libmagic \
&& pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY . .
2023-03-26 10:14:53 +02:00
CMD ["uvicorn", "main:app", "--host", "127.0.0.1", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips='*'"]