-
Notifications
You must be signed in to change notification settings - Fork 78
/
Dockerfile
executable file
·50 lines (43 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
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
#{
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/ .
#}
FROM i386/debian:9
LABEL maintainer "Philippe Coval ([email protected])"
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}
RUN echo "#log: Configuring locales" \
&& set -x \
&& apt-get update -y \
&& apt-get install -y locales \
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
&& locale-gen ${LC_ALL} \
&& dpkg-reconfigure locales \
&& sync
ENV project webthing-arduino
RUN echo "#log: ${project}: Setup system" \
&& set -x \
&& apt-get update -y \
&& apt-get install -y \
curl \
git \
make \
sudo \
xz-utils \
&& apt-get clean \
&& sync
COPY Makefile /usr/local/opt/${project}/src/${project}/Makefile
WORKDIR /usr/local/opt/${project}/src/${project}
RUN echo "#log: ${project}: Preparing sources" \
&& set -x \
&& make rule/setup \
&& sync
COPY . /usr/local/opt/${project}/src/${project}
RUN echo "#log: ${project}: Preparing sources" \
&& set -x \
&& make rule/all \
&& sync