we already have poetry in base image, and we do not have a dev stanza
This commit is contained in:
parent
da69a20ae2
commit
811a946879
|
@ -1,6 +1,5 @@
|
||||||
FROM ghcr.io/sartography/python:3.11
|
FROM ghcr.io/sartography/python:3.11
|
||||||
|
|
||||||
RUN pip install poetry
|
|
||||||
RUN useradd _gunicorn --no-create-home --user-group
|
RUN useradd _gunicorn --no-create-home --user-group
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
@ -10,7 +9,7 @@ RUN apt-get update && \
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY pyproject.toml poetry.lock /app/
|
COPY pyproject.toml poetry.lock /app/
|
||||||
RUN poetry install --without dev
|
RUN poetry install
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apt-get remove -y gcc python3-dev libssl-dev \
|
&& apt-get remove -y gcc python3-dev libssl-dev \
|
||||||
|
@ -22,6 +21,6 @@ COPY . /app/
|
||||||
|
|
||||||
# run poetry install again AFTER copying the app into the image
|
# run poetry install again AFTER copying the app into the image
|
||||||
# otherwise it does not know what the main app module is
|
# otherwise it does not know what the main app module is
|
||||||
RUN poetry install --without dev
|
RUN poetry install
|
||||||
|
|
||||||
CMD ./bin/boot_server_in_docker
|
CMD ./bin/boot_server_in_docker
|
||||||
|
|
Loading…
Reference in New Issue