1 | FROM debian:buster-slim
|
2 |
|
3 | WORKDIR /home/uke0/tmp
|
4 |
|
5 | # Copy again to prevent unsound caching
|
6 | COPY deps/from-apt.sh /home/uke0/tmp/deps/from-apt.sh
|
7 |
|
8 | RUN deps/from-apt.sh init-deb-cache
|
9 |
|
10 | # Note we do apt-get update here too
|
11 | RUN --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'
|
17 | RUN useradd --create-home -G sudo uke0 && \
|
18 | echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
|
19 | chown -R uke0 /home/uke0
|
20 |
|
21 | USER uke0
|
22 |
|
23 | CMD ["sh", "-c", "echo 'hello from oilshell/wedge-bootstrap-debian-10'"]
|