File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 1- FROM  debian:11-slim as build 
1+ FROM  ubuntu:latest 
22MAINTAINER  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
1119ENV  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
1220ENV  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
1321ENV  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 
1523RUN  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}" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments