we cannot poetry install without gcc

This commit is contained in:
burnettk 2022-12-23 19:07:03 -05:00
parent 8e50307641
commit 3c289abfca
1 changed files with 11 additions and 11 deletions

View File

@ -9,6 +9,17 @@ RUN set -xe \
&& apt-get install -y -q \
libpq-dev
WORKDIR /app
ADD pyproject.toml poetry.lock /app/
ADD connectors /app/connectors
RUN poetry install
COPY . /app/
# run poetry install again AFTER copying the app into the image
# otherwise it does not know what the main app module is
RUN poetry install
# remove packages that are not needed in production.
# just for security. won't help image size.
RUN set -xe \
@ -21,15 +32,4 @@ RUN set -xe \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
ADD pyproject.toml poetry.lock /app/
ADD connectors /app/connectors
RUN poetry install
COPY . /app/
# run poetry install again AFTER copying the app into the image
# otherwise it does not know what the main app module is
RUN poetry install
CMD ./bin/boot_server_in_docker