2024-02-24 00:13:16 +00:00
|
|
|
FROM python:3.12.1-slim-bookworm
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y -q \
|
|
|
|
gcc libssl-dev libpq-dev default-libmysqlclient-dev \
|
|
|
|
pkg-config libffi-dev git-core curl
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip
|
2024-02-28 14:49:45 +00:00
|
|
|
RUN pip install poetry==1.8.1 pytest-xdist==3.5.0
|
2024-02-24 00:13:16 +00:00
|
|
|
|
|
|
|
COPY pyproject.toml poetry.lock .
|
|
|
|
RUN poetry install --no-root
|
|
|
|
|
|
|
|
COPY ./ ./
|
|
|
|
RUN poetry install --only-root
|
|
|
|
|
|
|
|
CMD ["./bin/run_server_locally"]
|