Skip to content

Commit c6a3e62

Browse files
author
lennard.boediger
committed
add dockerfile
1 parent d0901a1 commit c6a3e62

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Dockerfile

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
1-
FROM debian:11-slim as build
1+
FROM ubuntu:latest
22
MAINTAINER Nitrokey <info@nitrokey.com>
33

4-
RUN apt-get update \
4+
# Install necessary packages
5+
RUN apt-get update \
56
&& apt-get install -y --no-install-recommends \
67
ca-certificates \
8+
make \
79
wget \
10+
srecord \
11+
bzip2 \
12+
git \
13+
python3 \
14+
python3-pip \
15+
python-is-python3 \
816
xz-utils \
917
&& rm -rf /var/lib/apt/lists/*
1018

1119
ENV URL https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz
1220
ENV URLSHA https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz.sha256asc
1321
ENV FILENAME gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz
14-
22+
ENV GCC_NAME gcc-arm-11.2-2022.02-x86_64-arm-none-eabi
1523
RUN set -eux; \
16-
wget "${URL}" && \
17-
wget "${URLSHA}" && \
18-
sha256sum -c < ${FILENAME}.sha256asc && \
19-
tar -C /opt -xf ${FILENAME} && \
20-
rm ${FILENAME};
24+
wget "${URL}" && \
25+
wget "${URLSHA}" && \
26+
sha256sum -c < ${FILENAME}.sha256asc && \
27+
tar -C /opt -xf ${FILENAME} && \
28+
rm ${FILENAME};
2129

22-
FROM debian:11-slim as target
23-
COPY --from=build /opt /
24-
RUN apt-get update \
25-
&& apt-get install -y --no-install-recommends \
26-
make \
27-
git \
28-
&& rm -rf /var/lib/apt/lists/*
30+
ENV PATH="/opt/${GCC_NAME}/bin/:${PATH}"

0 commit comments

Comments
 (0)