Skip to content

Commit

Permalink
Updated fix for cffi build error.
Browse files Browse the repository at this point in the history
- The updated version of `pip` is able to find the wheel(s) for the updated version of `PyNaCl`.  Therefore cffi does not need to be built.
- This provides a significant improvement in the build time for the images.

Signed-off-by: Wade Barnes <[email protected]>
  • Loading branch information
WadeBarnes committed Jan 12, 2022
1 parent 9f400aa commit a21ae05
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
11 changes: 1 addition & 10 deletions docker/Dockerfile.tails-server
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
FROM bcgovimages/von-image:next-1

ARG user=indy
USER root
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
python3-dev && \
rm -rf /var/lib/apt/lists/*
USER $user

ADD requirements.txt .
ADD requirements.dev.txt .

RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements.dev.txt

ADD tails_server ./tails_server
Expand Down
11 changes: 1 addition & 10 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
FROM bcgovimages/von-image:next-1

ARG user=indy
USER root
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
python3-dev && \
rm -rf /var/lib/apt/lists/*
USER $user

ADD requirements.txt .
ADD requirements.dev.txt .

RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements.dev.txt

ADD test ./
Expand Down
1 change: 0 additions & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
rich
cffi==1.14.6
pynacl
aiofiles

0 comments on commit a21ae05

Please sign in to comment.