mirror of https://github.com/MieuxVoter/mvapi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
325 B
15 lines
325 B
FROM python:3.11
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y postgresql-client && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /code
|
|
|
|
COPY ./requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir -U pip && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8877"]
|