forked from sdelafond/debian-cloud-images
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.build
More file actions
51 lines (44 loc) · 1.46 KB
/
Dockerfile.build
File metadata and controls
51 lines (44 loc) · 1.46 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM debian:bullseye
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/no-recommends && \
echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/no-recommends
RUN apt update -q
RUN apt install -y fai-server
RUN apt install -y fai-setup-storage
RUN apt install -y qemu-user-static
RUN apt install -y qemu-utils
RUN apt install -y binfmt-support
RUN apt install -y qemu-system-arm
RUN apt install -y build-essential
RUN apt install -y ca-certificates
RUN apt install -y debsums
RUN apt install -y dosfstools
RUN apt install -y fai-server
RUN apt install -y fai-setup-storage
RUN apt install -y make
RUN apt install -y python3
RUN apt install -y python3-libcloud
RUN apt install -y python3-marshmallow
RUN apt install -y python3-pytest
RUN apt install -y python3-yaml
RUN apt install -y udev
RUN apt install -y procps
RUN apt install -y sudo
RUN apt install -y apt-utils
RUN apt install -y debootstrap
RUN apt install -y bc
RUN apt install -y openssh-client
RUN apt install -y git
RUN apt install -y rename
RUN apt install -y awscli
RUN apt install -y jq
RUN apt install -y tree
RUN apt install -y fdisk
RUN sed -i '1179s%umount%#umount%' /usr/share/debootstrap/functions
RUN perl -i -pe 's/(^|\s+)(ROOTCMD=).+/$1$2"chroot \$NFSROOT"/' /usr/sbin/fai-make-nfsroot
RUN perl -i -pe 's/(^|\s+)(ROOTCMD=).+/$1$2"chroot \$FAI_ROOT"/' /usr/sbin/fai
ENV SRC=/opt/untangle/build
RUN mkdir -p ${SRC}
VOLUME ${SRC}
WORKDIR ${SRC}