forked from SiliconLabs/zipgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·36 lines (29 loc) · 925 Bytes
/
Dockerfile
File metadata and controls
executable file
·36 lines (29 loc) · 925 Bytes
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
#!/bin/echo run with: docker build . -f
# -*- coding: utf-8 -*-
FROM arm32v7/debian:stretch
ENV target_debian_arch armhf
LABEL maintainer="Philippe Coval <philippe.coval@silabs.com>"
ENV DEBIAN_FRONTEND noninteractive
RUN echo "# log: Setup system" \
&& set -x \
&& sed -e 's|\(http://\)\(.*\)\(.debian.org\)|\1archive\3|g' -i /etc/apt/sources.list \
&& sed -e 's|stretch-updates|stretch-proposed-updates|g' -i /etc/apt/sources.list \
&& apt-get update -y \
&& apt-get install -y sudo make \
&& date -u
ENV project zipgateway
ENV workdir /usr/local/src/${project}
WORKDIR ${workdir}
COPY helper.mk ${workdir}
RUN echo "# log: Install ${project}" \
&& set -x \
&& ./helper.mk setup/debian/stretch \
&& date -u
COPY . ${workdir}
WORKDIR ${workdir}
RUN echo "# log: Build ${project}" \
&& set -x \
&& ./helper.mk \
&& date -u
ENTRYPOINT [ "${workdir}/helper.mk" ]
CMD [ "start", "args=--help"]