-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
39 lines (29 loc) · 809 Bytes
/
Dockerfile
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
FROM debian:buster
ARG ROOT_PASSWORD
ENV ROOT_PASSWORD=${ROOT_PASSWORD:-live}
ARG PROJECT_NAME
ENV PROJECT_NAME=${PROJECT_NAME:-docker-live}
ARG ISO_NAME
ENV ISO_NAME=${ISO_NAME}:-${PROJECT_NAME}.iso}
ARG OUTPUT_DIR
ENV OUPUT_DIR=${OUTPUT_DIR:-/output}
ARG DEB_SUITE
ENV DEB_SUITE=${DEB_SUITE:-buster}
ARG DEB_MIRROR
ENV DEB_MIRROR=${DEB_MIRROR:-http://ftp.us.debian.org/debian/}
ARG BUILD_DIR
ENV BUILD_DIR=${BUILD_DIR:-/root/builder}
ARG SOURCE_DIR
ENV SOURCE_DIR=${SOURCE_DIR:-/root/src}
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends --yes install \
debootstrap \
grub-efi-amd64-bin \
grub-pc-bin \
mtools \
rsync \
squashfs-tools \
vim \
xorriso
WORKDIR $SOURCE_DIR
CMD ["./build-iso"]