OILS / deps / Dockerfile.soil-bloaty View on Github | oilshell.org

19 lines, 14 significant
1FROM oilshell/soil-common
2
3# Copy again to prevent unsound caching
4COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
5
6# debian-10 cache
7RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
8 --mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
9 du --si -s /var/cache/apt /var/lib/apt && \
10 deps/from-apt.sh bloaty
11
12# Build other dependencies as non-root uke
13USER uke
14
15# For measuring binary size
16COPY --chown=uke \
17 _build/wedge/binary/oils-for-unix.org/pkg/bloaty/1.1 \
18 /wedge/oils-for-unix.org/pkg/bloaty/1.1
19