Skip to content

Commit 20d2a54

Browse files
committed
Add build args and set MICROPYPATH
1 parent e96e7c1 commit 20d2a54

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM debian:12-slim as build
22
ARG VERSION=9.0.5
3+
ARG VARIANT=standard
4+
ARG MICROPYPATH=/ciruitpy/lib
35

46
# Install system requirements
57
RUN apt update \
@@ -14,15 +16,16 @@ RUN python3 -m pip install --upgrade -r requirements-dev.txt \
1416
&& python tools/ci_fetch_deps.py tests
1517
# Build the binaires
1618
RUN make -C mpy-cross \
17-
&& make -C ports/unix
19+
&& VARIANT=$VARIANT BUILD=build make -C ports/unix
1820

1921
# Create final runtime container
2022
FROM debian:12-slim
2123
COPY --from=build /circuitpython/mpy-cross/build/mpy-cross /usr/local/bin/mpy-cross
22-
COPY --from=build /circuitpython/ports/unix/build-standard/micropython /usr/local/bin/micropython
24+
COPY --from=build /circuitpython/ports/unix/build/micropython /usr/local/bin/micropython
2325
RUN useradd -Md /circuitpy circuitpy \
2426
&& mkdir /circuitpy \
2527
&& chown circuitpy:circuitpy /circuitpy
2628
USER circuitpy
2729
WORKDIR /circuitpy
30+
ENV MICROPYPATH=$MICROPYPATH
2831
ENTRYPOINT ["/usr/local/bin/micropython"]

0 commit comments

Comments
 (0)