File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,17 @@ RUN snap_version="$(awk '/^version:/{print $2}' /snap/snapcraft/current/meta/sna
40
40
RUN echo ' exec "$SNAP/usr/bin/python3" "$SNAP/bin/snapcraft" "$@"' >> / snap / bin / snapcraft
41
41
RUN chmod + x / snap / bin / snapcraft
42
42
43
+ # Workaround for old buggy version of patchelf
44
+ ADD https :// github.com/NixOS/patchelf/releases/download/0.17.2/patchelf-0.17.2-x86_64.tar.gz /opt/patchelf/patchelf.tar.gz
45
+ RUN cd / opt / patchelf && tar - xvf patchelf .tar .gz
46
+
43
47
# Multi - stage build , only need the snaps from the builder . Copy them one at a
44
48
# time so they can be cached .
45
49
FROM ubuntu :$UBUNTU
46
50
COPY -- from = builder / snap / core20 / snap / core20
47
51
COPY -- from = builder / snap / snapcraft / snap / snapcraft
48
52
COPY -- from = builder / snap / bin / snapcraft / snap / bin / snapcraft
53
+ COPY -- from = builder / opt / patchelf / bin / patchelf / snap / snapcraft / current / bin
49
54
50
55
# Generate locale and install dependencies .
51
56
RUN apt - get update && apt - get dist - upgrade -- yes && apt - get install -- yes snapd sudo locales && locale - gen en_US .UTF - 8 && \
You can’t perform that action at this time.
0 commit comments