OILS / deps / Dockerfile.wedge-bootstrap-debian-10 View on Github | oilshell.org

23 lines, 16 significant
1FROM debian:buster-slim
2
3WORKDIR /home/uke0/tmp
4
5# Copy again to prevent unsound caching
6COPY deps/from-apt.sh /home/uke0/tmp/deps/from-apt.sh
7
8RUN deps/from-apt.sh init-deb-cache
9
10# Note we do apt-get update here too
11RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
12 --mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
13 du --si -s /var/cache/apt /var/lib/apt && \
14 deps/from-apt.sh layer-wedge-bootstrap-debian-10
15
16# Password-less sudo for 'sudo make install'
17RUN useradd --create-home -G sudo uke0 && \
18 echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
19 chown -R uke0 /home/uke0
20
21USER uke0
22
23CMD ["sh", "-c", "echo 'hello from oilshell/wedge-bootstrap-debian-10'"]