Skip to content

Commit

Permalink
Use a two-stage build process
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschuler committed Jun 20, 2024
1 parent 5716994 commit 615e507
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions naosdk/Containerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
FROM debian
FROM debian AS build

LABEL org.opencontainers.image.source https://github.com/hulks/meta-nao

RUN apt-get update && apt-get install --no-install-recommends --yes \
ca-certificates \
curl \
file \
python3 \
xz-utils \
zstd \
&& rm --recursive --force /var/lib/apt/lists/*

ARG version

COPY --chmod=744 sdk/HULKs-OS-*.sh /opt/
RUN /opt/HULKs-OS-$(uname -m)-toolchain-${version}.sh -d /naosdk

RUN /opt/HULKs-OS-$(uname -m)-toolchain-${version}.sh -d /naosdk -y && rm /opt/HULKs-OS-*.sh
FROM busybox
COPY --from=build /naosdk /naosdk
RUN ln -s /naosdk/sysroots/x86_64-naosdk-linux/bin/bash /bin/bash
RUN echo . /naosdk/environment-setup-corei7-64-aldebaran-linux >> /root/.bashrc

0 comments on commit 615e507

Please sign in to comment.