Skip to content

Commit

Permalink
run poetry install after copying in the current directory for connect…
Browse files Browse the repository at this point in the history
…or-example w/ burnettk (#2105)

Co-authored-by: jasquat <[email protected]>
  • Loading branch information
jasquat and jasquat authored Oct 9, 2024
1 parent b1359e3 commit 3951168
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions connector-proxy-demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ FROM base AS deployment
# default-mysql-client for convenience accessing mysql docker container
# vim ftw
RUN apt-get update \
&& apt-get clean -y \
&& apt-get install -y -q git-core curl procps gunicorn3 default-mysql-client vim-tiny \
&& rm -rf /var/lib/apt/lists/*
&& apt-get clean -y \
&& apt-get install -y -q git-core curl procps gunicorn3 default-mysql-client vim-tiny \
&& rm -rf /var/lib/apt/lists/*

RUN pip install poetry==1.6.1

Expand All @@ -42,12 +42,11 @@ RUN pip install poetry==1.6.1
RUN useradd _gunicorn --no-create-home --user-group

RUN apt-get update \
&& apt-get install -y -q gcc libssl-dev pkg-config
&& apt-get install -y -q gcc libssl-dev pkg-config

# 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

COPY . /app
RUN poetry install
Expand Down

0 comments on commit 3951168

Please sign in to comment.