Skip to content

Commit

Permalink
try to get around ModuleNotFoundError when executing add-apt-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Jul 19, 2024
1 parent 4de3063 commit 23d1e64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

RUN apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install build-essential software-properties-common -y && \
# Need to link apt_get.so: https://askubuntu.com/questions/1043484/modulenotfounderror-no-module-named-apt-pkg-trying-to-install-moka
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/apt_pkg.so && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update -y && \
apt-get install git wget vim -y && \
apt-get install git wget vim -y

# Copy repo code, to be built later.
RUN mkdir /looptrace
Expand Down

0 comments on commit 23d1e64

Please sign in to comment.