Skip to content

Commit

Permalink
Upgrade pip in dockerfile, make sure specific build deps are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
agates committed Jun 18, 2022
1 parent 6dc3c32 commit 3143846
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ RUN apt-get update \
&& apt-get -y upgrade \
# rustc, cargo for armhf "cryptography"
# libzmq3-dev for armhf "pyzmq"
&& apt-get -y install --no-install-recommends capnproto cargo libzmq3-dev rustc
&& apt-get -y install --no-install-recommends capnproto cargo libzmq3-dev rustc build-essential libssl-dev libffi-dev

USER podping
WORKDIR /home/podping/app

COPY pyproject.toml poetry.lock ./

RUN pip install --user poetry \
RUN pip install --upgrade pip \
&& pip install --user poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-root --no-dev --no-interaction --no-ansi

Expand All @@ -49,7 +50,8 @@ WORKDIR /home/podping/app
ENV PATH="/home/podping/.local/bin:${PATH}"

COPY --chown=podping:podping . .
RUN pip install poetry \
RUN pip install --upgrade pip \
&& pip install poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-dev --no-interaction --no-ansi

Expand Down

0 comments on commit 3143846

Please sign in to comment.