| 1 | # For running test/wild.sh
|
| 2 |
|
| 3 | FROM oilshell/soil-debian-12
|
| 4 |
|
| 5 | # Copy again to prevent unsound caching
|
| 6 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
| 7 |
|
| 8 | RUN --mount=type=cache,id=var-cache-apt-debian-12,target=/var/cache/apt,sharing=locked \
|
| 9 | --mount=type=cache,id=var-lib-apt-debian-12,target=/var/lib/apt,sharing=locked \
|
| 10 | du --si -s /var/cache/apt /var/lib/apt && \
|
| 11 | deps/from-apt.sh wild
|
| 12 |
|
| 13 | #RUN deps/from-apt.sh layer-python-symlink
|
| 14 |
|
| 15 | USER uke
|
| 16 |
|
| 17 | # Copy pre-built wedges
|
| 18 |
|
| 19 | COPY --chown=uke \
|
| 20 | _build/wedge/binary/oils-for-unix.org/pkg/cmark/0.29.0 \
|
| 21 | /wedge/oils-for-unix.org/pkg/cmark/0.29.0
|
| 22 |
|
| 23 | COPY --chown=uke \
|
| 24 | _build/wedge/binary/oils-for-unix.org/pkg/re2c/3.0 \
|
| 25 | /wedge/oils-for-unix.org/pkg/re2c/3.0
|
| 26 |
|
| 27 | # TODO:
|
| 28 | # - Try to extract FIRST, and then copy.
|
| 29 | # - Put it in deps/source.medo/wild-source.tree-tar (vs. tree-pack, blob)
|
| 30 |
|
| 31 | COPY --chown=uke _cache/wild-source.tar.gz \
|
| 32 | /home/uke/tmp/_cache/wild-source.tar.gz
|
| 33 |
|
| 34 | COPY build/common.sh /home/uke/tmp/build/common.sh
|
| 35 | COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
|
| 36 |
|
| 37 | RUN deps/from-tar.sh extract-wild
|
| 38 |
|
| 39 | CMD ["sh", "-c", "echo 'hello from oilshell/soil-wild'"]
|