OILS / deps / Dockerfile.soil-wild View on Github | oilshell.org

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