1 | # This image is only for TESTING
|
2 |
|
3 | FROM debian:buster-slim
|
4 |
|
5 | WORKDIR /home/uke/tmp
|
6 |
|
7 | # Copy build scripts into the container and run them
|
8 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
9 |
|
10 | RUN deps/from-apt.sh init-deb-cache
|
11 |
|
12 | # --no-cache will make these invisible
|
13 | # And it appears that id= makes them stable across Dockerfile.{common,pea} ?
|
14 | # So we have a single shared cache.
|
15 | RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
|
16 | --mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
|
17 | du --si -s /var/cache/apt /var/lib/apt && \
|
18 | deps/from-apt.sh layer-common
|
19 |
|
20 | # Note: can't remove apt lists yet, because other images will install more
|
21 | # packages.
|
22 |
|
23 | RUN useradd --create-home uke && chown -R uke /home/uke
|
24 |
|
25 | # TODO: try making this a relative wedge:
|
26 | # - It's installed in /home/wedge-builder/wedge/...
|
27 | # - It's RUN from /home/uke/wedge/...
|
28 |
|
29 | COPY --chown=uke \
|
30 | _build/wedge/binary/oils-for-unix.org/pkg/time-helper/2023-02-28 \
|
31 | /wedge/oils-for-unix.org/pkg/time-helper/2023-02-28
|