balance-application/Dockerfile

18 lines
371 B
Docker
Raw Permalink Normal View History

2024-10-10 05:23:55 +00:00
FROM python:3.11-alpine3.20
WORKDIR /app
RUN apk update \
&& apk add --no-cache postgresql-dev gcc musl-dev make py3-uvloop \
&& pip install -U pip setuptools wheel Cython
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
2024-10-10 06:23:14 +00:00
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
2024-10-10 05:23:55 +00:00