1 | FROM oilshell/soil-debian-12
|
2 |
|
3 | # Copy again to prevent unsound caching
|
4 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
5 |
|
6 | RUN --mount=type=cache,id=var-cache-apt-debian-12,target=/var/cache/apt,sharing=locked \
|
7 | --mount=type=cache,id=var-lib-apt-debian-12,target=/var/lib/apt,sharing=locked \
|
8 | du --si -s /var/cache/apt /var/lib/apt && \
|
9 | deps/from-apt.sh dev-minimal
|
10 |
|
11 | # use this instead of 'source build/dev-shell.sh' for now
|
12 | RUN deps/from-apt.sh layer-python2-symlink
|
13 |
|
14 | USER uke
|
15 |
|
16 | # Our own python3
|
17 | COPY --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.
|
22 | COPY --chown=uke \
|
23 | _build/deps-source/pyflakes/pyflakes-2.4.0/ \
|
24 | /home/uke/wedge/oils-for-unix.org/pkg/pyflakes/2.4.0/
|
25 |
|
26 | # So we can run python3 -m mypy. (Not just for mycpp)
|
27 | COPY --chown=uke \
|
28 | _build/deps-source/mypy/mypy-0.780/ \
|
29 | /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
|
30 |
|
31 | # 2025-04: build/deps.sh install-py3-libs depends on this - need tree shaking
|
32 | COPY stdlib/osh/bash-strict.sh /home/uke/tmp/stdlib/osh/bash-strict.sh
|
33 | COPY stdlib/osh/task-five.sh /home/uke/tmp/stdlib/osh/task-five.sh
|
34 | COPY stdlib/osh/byo-server.sh /home/uke/tmp/stdlib/osh/byo-server.sh
|
35 | COPY stdlib/osh/two.sh /home/uke/tmp/stdlib/osh/two.sh
|
36 | COPY test/tsv-lib.sh /home/uke/tmp/test/tsv-lib.sh
|
37 | COPY web/table/html.sh /home/uke/tmp/web/table/html.sh
|
38 |
|
39 | COPY build/deps.sh /home/uke/tmp/build/deps.sh
|
40 | COPY build/dev-shell.sh /home/uke/tmp/build/dev-shell.sh
|
41 |
|
42 | # Hack for now: pass a different MyPy dir
|
43 | # Ideally py3-libs would be created a BUILD TIME with wedge-builder, not at
|
44 | # RUNTIME with uke!
|
45 | RUN build/deps.sh install-py3-libs /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
|
46 |
|
47 | CMD ["sh", "-c", "echo 'hello from oilshell/soil-dev-minimal'"]
|