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

46 lines, 32 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: Could make a wedges out of Python 2.7, and all shells in spec-bin
28
29# Copy into current directory
30COPY --chown=uke \
31 Python-2.7.13/ \
32 /home/uke/tmp/Python-2.7.13/
33
34COPY build/common.sh /home/uke/tmp/build/common.sh
35COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
36
37# For bootstrapping the OVM build
38RUN deps/from-tar.sh layer-cpython
39
40COPY devtools/run-task.sh /home/uke/tmp/devtools/run-task.sh
41COPY test/spec-common.sh /home/uke/tmp/test/spec-common.sh
42COPY test/spec-bin.sh /home/uke/tmp/test/spec-bin.sh
43
44RUN test/spec-bin.sh all-steps
45
46CMD ["sh", "-c", "echo 'hello from oilshell/ovm-tarball'"]