| 1 | FROM oilshell/soil-debian-12
|
| 2 |
|
| 3 | # Copy again to prevent unsound caching
|
| 4 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
| 5 |
|
| 6 | # layer-locales also has to install packages
|
| 7 | RUN --mount=type=cache,id=var-cache-apt-debian-12,target=/var/cache/apt,sharing=locked \
|
| 8 | --mount=type=cache,id=var-lib-apt-debian-12,target=/var/lib/apt,sharing=locked \
|
| 9 | du --si -s /var/cache/apt /var/lib/apt && \
|
| 10 | deps/from-apt.sh layer-locales && \
|
| 11 | deps/from-apt.sh ovm-tarball
|
| 12 |
|
| 13 | USER uke
|
| 14 |
|
| 15 | # Copy pre-built wedges
|
| 16 |
|
| 17 | COPY --chown=uke \
|
| 18 | _build/boxed/wedge/cmark/0.29.0 \
|
| 19 | /home/uke/oils.DEPS/wedge/cmark/0.29.0
|
| 20 |
|
| 21 | COPY --chown=uke \
|
| 22 | _build/boxed/wedge/re2c/3.0 \
|
| 23 | /home/uke/oils.DEPS/wedge/re2c/3.0
|
| 24 |
|
| 25 | # Shells for spec tests
|
| 26 |
|
| 27 | COPY --chown=uke \
|
| 28 | _build/boxed/wedge/bash/4.4 \
|
| 29 | /home/uke/oils.DEPS/wedge/bash/4.4
|
| 30 |
|
| 31 | COPY --chown=uke \
|
| 32 | _build/boxed/wedge/bash/5.2.21 \
|
| 33 | /home/uke/oils.DEPS/wedge/bash/5.2.21
|
| 34 |
|
| 35 | COPY --chown=uke \
|
| 36 | _build/boxed/wedge/busybox/1.35.0 \
|
| 37 | /home/uke/oils.DEPS/wedge/busybox/1.35.0
|
| 38 |
|
| 39 | COPY --chown=uke \
|
| 40 | _build/boxed/wedge/dash/0.5.10.2 \
|
| 41 | /home/uke/oils.DEPS/wedge/dash/0.5.10.2
|
| 42 |
|
| 43 | COPY --chown=uke \
|
| 44 | _build/boxed/wedge/mksh/R52c \
|
| 45 | /home/uke/oils.DEPS/wedge/mksh/R52c
|
| 46 |
|
| 47 | COPY --chown=uke \
|
| 48 | _build/boxed/wedge/yash/2.49 \
|
| 49 | /home/uke/oils.DEPS/wedge/yash/2.49
|
| 50 |
|
| 51 | COPY --chown=uke \
|
| 52 | _build/boxed/wedge/zsh/5.1.1 \
|
| 53 | /home/uke/oils.DEPS/wedge/zsh/5.1.1
|
| 54 |
|
| 55 | COPY --chown=uke \
|
| 56 | _build/boxed/wedge/zsh/5.9 \
|
| 57 | /home/uke/oils.DEPS/wedge/zsh/5.9
|
| 58 |
|
| 59 | # Make symlinks
|
| 60 | COPY deps/make-bin.sh /home/uke/tmp/deps/make-bin.sh
|
| 61 | RUN mkdir -p /home/uke/oils.DEPS/bin && \
|
| 62 | deps/make-bin.sh re2c /home/uke/oils.DEPS && \
|
| 63 | deps/make-bin.sh shells /home/uke/oils.DEPS
|
| 64 |
|
| 65 | # Should we use the Python 2.7.18 wedge instead of our own dir? Probably not,
|
| 66 | # because it's
|
| 67 |
|
| 68 | # Copy into current directory
|
| 69 | COPY --chown=uke \
|
| 70 | Python-2.7.13/ \
|
| 71 | /home/uke/tmp/Python-2.7.13/
|
| 72 |
|
| 73 | COPY build/common.sh /home/uke/tmp/build/common.sh
|
| 74 | COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
|
| 75 |
|
| 76 | # For bootstrapping the OVM build
|
| 77 | RUN deps/from-tar.sh layer-cpython
|
| 78 |
|
| 79 | CMD ["sh", "-c", "echo 'hello from oilshell/ovm-tarball'"]
|