Skip to content

Commit 91fd5b4

Browse files
committed
GH-14: docker: Build into containainer using helper.mk
To ensure reproductibility on host Bug-SiliconLabs: UIC-3082 Bug-GitHub: #3 Forwarded: SiliconLabs#14 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent cf90700 commit 91fd5b4

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+
#!/bin/echo docker build . -f
2+
# -*- coding: utf-8 -*-
3+
4+
FROM debian:12
5+
6+
ENV DEBIAN_FRONTEND noninteractive
7+
ENV LC_ALL en_US.UTF-8
8+
ENV LANG ${LC_ALL}
9+
10+
RUN echo "# log: Configuring locales" \
11+
&& set -x \
12+
&& apt-get update -y \
13+
&& apt-get install -y locales \
14+
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
15+
&& locale-gen ${LC_ALL} \
16+
&& dpkg-reconfigure locales \
17+
&& TZ=Etc/UTC apt-get -y install tzdata \
18+
&& date -u
19+
20+
ENV project UnifySDK
21+
ENV workdir /usr/local/opt/${project}
22+
ADD . ${workdir}
23+
24+
WORKDIR ${workdir}
25+
26+
RUN echo "# log: Setup system" \
27+
&& set -x \
28+
&& apt-get install -y make sudo \
29+
&& ./helper.mk help setup/debian/12 \
30+
&& date -u
31+
32+
RUN echo "# log: Build" \
33+
&& set -x \
34+
&& ./helper.mk \
35+
&& date -u

0 commit comments

Comments
 (0)