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

48 lines, 33 significant
1FROM oilshell/soil-common
2
3# Copy again to prevent unsound caching
4COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
5
6# layer-locales also has to install packages
7RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
8 --mount=type=cache,id=var-lib-apt,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
13RUN deps/from-apt.sh layer-python-symlink
14
15USER uke
16
17# Copy pre-built wedges
18
19COPY --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
23COPY --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: copy shells for spec tests here
28
29# TODO: Could make a wedges out of Python 2.7
30
31# Copy into current directory
32COPY --chown=uke \
33 Python-2.7.13/ \
34 /home/uke/tmp/Python-2.7.13/
35
36COPY build/common.sh /home/uke/tmp/build/common.sh
37COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
38
39# For bootstrapping the OVM build
40RUN deps/from-tar.sh layer-cpython
41
42COPY devtools/run-task.sh /home/uke/tmp/devtools/run-task.sh
43COPY test/spec-common.sh /home/uke/tmp/test/spec-common.sh
44COPY test/spec-bin.sh /home/uke/tmp/test/spec-bin.sh
45
46RUN test/spec-bin.sh all-steps
47
48CMD ["sh", "-c", "echo 'hello from oilshell/ovm-tarball'"]