| 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 | USER uke
|
| 12 |
|
| 13 | COPY --chown=uke \
|
| 14 | _build/boxed/wedge/python3/3.10.4 \
|
| 15 | /home/uke/oils.DEPS/wedge/python3/3.10.4
|
| 16 |
|
| 17 | # Put python3 in PATH before running install-py3-libs
|
| 18 | RUN mkdir -p /home/uke/oils.DEPS/bin && \
|
| 19 | ln -s --relative /home/uke/oils.DEPS/wedge/python3/3.10.4/bin/python3 /home/uke/oils.DEPS/bin
|
| 20 |
|
| 21 | COPY --chown=uke \
|
| 22 | _build/boxed/wedge/pyflakes/2.4.0 \
|
| 23 | /home/uke/oils.DEPS/wedge/pyflakes/2.4.0
|
| 24 |
|
| 25 | # So we can run python3 -m mypy. (Not just for mycpp)
|
| 26 | COPY --chown=uke \
|
| 27 | _build/deps-source/mypy/mypy-0.780/ \
|
| 28 | /home/uke/oils.DEPS/wedge/mypy/0.780/
|
| 29 |
|
| 30 | # 2025-04: build/deps.sh install-py3-libs depends on this - need tree shaking
|
| 31 | COPY stdlib/osh/bash-strict.sh /home/uke/tmp/stdlib/osh/bash-strict.sh
|
| 32 | COPY stdlib/osh/task-five.sh /home/uke/tmp/stdlib/osh/task-five.sh
|
| 33 | COPY stdlib/osh/byo-server.sh /home/uke/tmp/stdlib/osh/byo-server.sh
|
| 34 | COPY stdlib/osh/two.sh /home/uke/tmp/stdlib/osh/two.sh
|
| 35 | COPY test/tsv-lib.sh /home/uke/tmp/test/tsv-lib.sh
|
| 36 | COPY web/table/html.sh /home/uke/tmp/web/table/html.sh
|
| 37 |
|
| 38 | COPY build/deps.sh /home/uke/tmp/build/deps.sh
|
| 39 | COPY build/dev-shell.sh /home/uke/tmp/build/dev-shell.sh
|
| 40 |
|
| 41 | # Hack for now: pass a different MyPy dir
|
| 42 | # Ideally py3-libs would be created a BUILD TIME with wedge-builder, not at
|
| 43 | # RUNTIME with uke!
|
| 44 | #RUN build/deps.sh install-py3-libs /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
|
| 45 | RUN build/deps.sh install-py3-libs \
|
| 46 | /home/uke/oils.DEPS/wedge/mypy/0.780/ ../oils.DEPS/wedge
|
| 47 |
|
| 48 | CMD ["sh", "-c", "echo 'hello from oilshell/soil-dev-minimal'"]
|