OILS / deps / Dockerfile.soil-test-image View on Github | oils.pub

44 lines, 32 significant
1# This image is only for TESTING
2
3FROM oilshell/soil-debian-12
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-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 test-image
12
13USER uke
14
15# 2025-04-30 - TESTING Python with SSL - COPIED from soil-benchmarks image
16
17COPY --chown=uke \
18 _build/wedge/binary/oils-for-unix.org/pkg/python3/3.10.4 \
19 /wedge/oils-for-unix.org/pkg/python3/3.10.4
20
21# Copy _build/deps-source -> /home/uke/wedge for now.
22COPY --chown=uke \
23 _build/deps-source/mypy/mypy-0.780/ \
24 /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
25
26# 2025-04 update: we should automate copying the OSH stdlib to the container
27COPY stdlib/osh/bash-strict.sh /home/uke/tmp/stdlib/osh/bash-strict.sh
28COPY stdlib/osh/task-five.sh /home/uke/tmp/stdlib/osh/task-five.sh
29COPY stdlib/osh/byo-server.sh /home/uke/tmp/stdlib/osh/byo-server.sh
30COPY stdlib/osh/two.sh /home/uke/tmp/stdlib/osh/two.sh
31
32# build/deps.sh install-py3-libs depends on this - need tree shaking
33COPY test/tsv-lib.sh /home/uke/tmp/test/tsv-lib.sh
34COPY web/table/html.sh /home/uke/tmp/web/table/html.sh
35
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-test-image'"]