1 | FROM oilshell/soil-common
|
2 |
|
3 | # Copy again to prevent unsound caching
|
4 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
5 |
|
6 | # debian-10 cache
|
7 | RUN --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
|
13 | USER uke
|
14 |
|
15 | # For measuring binary size
|
16 | COPY --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 |
|