Skip to content

Commit

Permalink
Add required dependencies (libffi-dev) to python compilation. (#467)
Browse files Browse the repository at this point in the history
- Also use --no-install-recommends to keep dependencies to a minimum.
- This requires manually adding back in dependencies like build-essential and
  ca-certificates that were previously installed as they were 'recommended'
  • Loading branch information
robdimsdale authored Nov 14, 2022
1 parent 284526b commit b788537
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions dependency/actions/compile/bionic.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ FROM ubuntu:bionic
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get -y install dialog apt-utils libdb-dev libgdbm-dev tk8.6-dev curl libssl-dev && \
apt-get -y --force-yes -d install --reinstall libtcl8.6 libtk8.6 libxss1
apt-get -y install --no-install-recommends \
apt-utils \
build-essential \
ca-certificates \
curl \
dialog \
libdb-dev \
libffi-dev \
libgdbm-dev \
libssl-dev \
tk8.6-dev \
tzdata \
xz-utils \
&& apt-get -y --force-yes -d install --reinstall libtcl8.6 libtk8.6 libxss1

COPY entrypoint.sh /entrypoint.sh

Expand Down
16 changes: 14 additions & 2 deletions dependency/actions/compile/jammy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ FROM ubuntu:jammy
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get -y install dialog apt-utils libdb-dev libgdbm-dev tk8.6-dev curl libssl-dev && \
apt-get -y --force-yes -d install --reinstall libtcl8.6 libtk8.6 libxss1
apt-get -y install --no-install-recommends \
apt-utils \
build-essential \
ca-certificates \
curl \
dialog \
libdb-dev \
libffi-dev \
libgdbm-dev \
libssl-dev \
tk8.6-dev \
tzdata \
xz-utils \
&& apt-get -y --force-yes -d install --no-install-recommends --reinstall libtcl8.6 libtk8.6 libxss1

COPY entrypoint.sh /entrypoint.sh

Expand Down

0 comments on commit b788537

Please sign in to comment.