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

44 lines, 32 significant
1# cpp-spec: Similar to Dockerfile.cpp-small, except for pexpect
2
3FROM oilshell/soil-common
4
5# Copy again to prevent unsound caching
6COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
7
8RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
9 --mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
10 du --si -s /var/cache/apt /var/lib/apt && \
11 deps/from-apt.sh cpp-spec
12
13# Build other dependencies as non-root uke
14USER uke
15
16# Pre-built wedges
17
18COPY --chown=uke \
19 _build/wedge/binary/oils-for-unix.org/pkg/cmark/0.29.0 \
20 /wedge/oils-for-unix.org/pkg/cmark/0.29.0
21
22COPY --chown=uke \
23 _build/wedge/binary/oils-for-unix.org/pkg/re2c/3.0 \
24 /wedge/oils-for-unix.org/pkg/re2c/3.0
25
26COPY --chown=uke \
27 _build/wedge/binary/oils-for-unix.org/pkg/python3/3.10.4 \
28 /wedge/oils-for-unix.org/pkg/python3/3.10.4
29
30# Copy _build/deps-source -> /home/uke/wedge for now.
31COPY --chown=uke \
32 _build/deps-source/mypy/mypy-0.780/ \
33 /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
34
35COPY devtools/run-task.sh /home/uke/tmp/devtools/run-task.sh
36COPY build/deps.sh /home/uke/tmp/build/deps.sh
37COPY build/dev-shell.sh /home/uke/tmp/build/dev-shell.sh
38
39# Hack for now: pass a different MyPy dir
40# Ideally py3-libs would be created a BUILD TIME with wedge-builder, not at
41# RUNTIME with uke!
42RUN build/deps.sh install-py3-libs /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
43
44CMD ["sh", "-c", "echo 'hello from oilshell/soil-cpp-spec'"]