Skip to content

Commit 711bd31

Browse files
rzragarwal57
authored andcommitted
GH-14: docker: Build into container using helper.mk
To ensure reproductibility on host or cloud Bug-SiliconLabs: UIC-3082 Bug-GitHub: rzr#3 Forwarded: #14 Signed-off-by: Philippe Coval <[email protected]>
1 parent 703a326 commit 711bd31

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM debian:bullseye
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
ENV LC_ALL en_US.UTF-8
5+
ENV LANG ${LC_ALL}
6+
7+
RUN echo "# log: Configuring locales" \
8+
&& set -x \
9+
&& apt-get update -y \
10+
&& apt-get install -y locales \
11+
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
12+
&& locale-gen ${LC_ALL} \
13+
&& dpkg-reconfigure locales \
14+
&& TZ=Etc/UTC apt-get -y install tzdata \
15+
&& date -u
16+
17+
ENV project unifysdk
18+
ENV workdir /usr/local/opt/${project}
19+
ADD . ${workdir}
20+
21+
WORKDIR ${workdir}
22+
23+
RUN echo "# log: Setup system" \
24+
&& set -x \
25+
&& apt-get install -y make sudo \
26+
&& ./helper.mk help setup \
27+
&& date -u
28+
29+
RUN echo "# log: Build" \
30+
&& set -x \
31+
&& ./helper.mk \
32+
&& date -u
33+
34+
ENTRYPOINT [ "/usr/local/opt/unifysdk/helper.mk" ]
35+
CMD [ "help" ]

0 commit comments

Comments
 (0)