-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
50 lines (41 loc) · 1.19 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 gcc:7.2
ARG FFMD_REPO=https://github.com/FreifunkMD/site-ffmd.git
ARG FFMD_VERSION=tags/v0.40
ARG GLUON_REPO=git://github.com/freifunk-gluon/gluon.git
ARG GLUON_VERSION=origin/v2016.2.x
# Apt-proxy config
COPY detect-apt-proxy.sh /usr/local/bin/
COPY 01proxy /etc/apt/apt.conf.d
# Update & install packages & cleanup afterwards
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get -y upgrade && \
apt-get -y install \
build-essential \
ecdsautils \
gawk \
git \
libncurses-dev \
libssl-dev \
libz-dev \
python-pip \
python3-pip \
subversion \
unzip \
wget && \
apt-get clean autoclean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
RUN git clone $GLUON_REPO gluon
WORKDIR gluon
RUN git checkout $GLUON_VERSION
RUN git clone $FFMD_REPO site
WORKDIR site
RUN git checkout $FFMD_VERSION
WORKDIR /gluon
RUN pwd
# RUN make update
ENV FORCE_UNSAFE_CONFIGURE=1
ENTRYPOINT ["/bin/bash","-c"]
#CMD ["cd /gluon && make update && for i in ar71xx-generic ar71xx-tiny; do GLUON_TARGET=$i make -j4 || make V=s && break; done"]
CMD ["cd /gluon && make update && site/build.sh -y"]