we cannot poetry install without gcc
This commit is contained in:
parent
8e50307641
commit
3c289abfca
22
Dockerfile
22
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue