mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-16 05:04:18 +00:00
avoid poetry installing deps when we have them cached if they do not change
This commit is contained in:
parent
cd435841d7
commit
7da3cb0377
@ -24,6 +24,11 @@ RUN useradd _gunicorn --no-create-home --user-group
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y -q gcc libssl-dev libpq-dev
|
&& apt-get install -y -q gcc libssl-dev libpq-dev
|
||||||
|
|
||||||
|
# poetry install takes a long time and can be cached if dependencies don't change,
|
||||||
|
# so that's why we tolerate running it twice.
|
||||||
|
COPY pyproject.toml poetry.lock /app/
|
||||||
|
RUN poetry install --without dev
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN poetry install --without dev
|
RUN poetry install --without dev
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user