forked from ffdo/site-ffdo-l2tp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (39 loc) · 2.23 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
FROM debian:buster-slim
MAINTAINER Cajus Kamer <[email protected]>
ENV GLUON_TAG_DOCKER_ENV v2020.1.x
ENV GLUON_RELEASE_DOCKER_ENV 3.0.0
ENV GLUON_TARGETS_DOCKER_ENV ar71xx-generic ar71xx-mikrotik ar71xx-nand ar71xx-tiny ath79-generic \
brcm2708-bcm2708 brcm2708-bcm2709 brcm2708-bcm2710 ipq40xx-generic ipq806x-generic \
lantiq-xrx200 lantiq-xway mpc85xx-generic mpc85xx-p1020 mvebu-cortexa9 \
ramips-mt7620 ramips-mt7621 ramips-mt76x8 ramips-rt305x sunxi-cortexa7 x86-64 x86-generic x86-geode
ENV DOMAINS_TO_BUILD_DOCKER_ENV Domäne-01 Domäne-02 Domäne-03 Domäne-04 Domäne-05 Domäne-06 Domäne-07 Domäne-08 Domäne-09 Domäne-09 Domäne-10 Domäne-11
ENV BUILD_GLUON_DIR_DOCKER_ENV /usr/src/build/gluon
ENV BUILD_SITE_DIR_DOCKER_ENV /usr/src/build/site
ENV BUILD_ALL_SITES_DIR_DOCKER_ENV /usr/src/sites
ENV BUILD_LOG_DIR_DOCKER_ENV /usr/src/build/log
ENV BUILD_OUTPUT_DIR_DOCKER_ENV /usr/src/build/build
ENV BUILD_IMAGE_DIR_PREFIX_DOCKER_ENV /data/images.ffdo.de/ffdo_ng/domaenen
# ENV TELEGRAM_NOTIFY_CHATID_DOCKER_ENV=
ENV TELEGRAM_AUTH_TOKEN_DOCKER_ENV=/usr/src/ChatAuthTokens/telegram.authToken
ENV TELEGRAM_CHAT_ID_DOCKER_ENV=/usr/src/ChatAuthTokens/telegram.chatID
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN apt-get update
RUN apt-get -y install --no-install-recommends adduser bash ca-certificates \
curl python python3 python3-yaml python3-jinja2 wget file git subversion \
build-essential gawk unzip libncurses5-dev zlib1g-dev openssl libssl-dev libelf-dev \
bsdmainutils time ecdsautils lua-check shellcheck && apt-get clean
ADD build_all_lede.sh /usr/src/build_all_lede.sh
RUN chmod 777 /usr/src/build_all_lede.sh
ADD ChatAuthTokens /usr/src/ChatAuthTokens
COPY ChatAuthTokens/* /usr/src/ChatAuthTokens/
RUN adduser --system --home /usr/src/build build
USER build
WORKDIR /usr/src/build
COPY generated/sites /usr/src/sites
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "FFDO Gluon Build Container"
CMD ["/bin/bash", "/usr/src/build_all_lede.sh", "-B", "--force-retries", "3"]