File: Dockerfile-coreboot

package info (click to toggle)
picolibc 1.8.11-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,064 kB
  • sloc: ansic: 404,031; asm: 24,984; sh: 2,585; python: 2,289; perl: 680; pascal: 329; exp: 287; makefile: 222; cpp: 71; xml: 40
file content (29 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# syntax=docker/dockerfile:1
FROM coreboot/coreboot-sdk

COPY .github/coreboot-packages.txt /

COPY .github/coreboot-files.txt /

USER root
RUN apt-get update && \
    apt-get install -y --no-install-recommends ca-certificates wget gnupg && \
    (apt-get update || apt-get update || apt-get update) && \
    (apt-get upgrade -y || apt-get upgrade -y || apt-get upgrade -y) && \
    (xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends || \
     xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends || \
     xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends || \
     xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends) && \
    mkdir -p /opt && \
    (cd /opt && \
     for file in `cat /coreboot-files.txt`; do \
	echo "Fetching $file"; \
	wget "$file" || exit 1; \
	echo "Unpacking $file"; \
	tar xf `basename "$file"`; \
	echo "Removing $file"; \
	rm `basename "$file"`; \
     done) && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*