OILS / deps / Dockerfile.common View on Github | oilshell.org

31 lines, 22 significant
1# This image is only for TESTING
2
3FROM debian:buster-slim
4
5WORKDIR /home/uke/tmp
6
7# Copy build scripts into the container and run them
8COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
9
10RUN 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.
15RUN --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
23RUN 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
29COPY --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