-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·67 lines (60 loc) · 1.64 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
#{
# Copyright 2019-present Samsung Electronics France SAS, and other contributors
#
# This Source Code Form is subject to the terms of the MIT Licence
# If a copy of the MIT was not distributed with this file
# You can obtain one at:
# https://spdx.org/licenses/MIT.html
#}
FROM debian:10
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 \
--no-install-recommends \
locales=2.28-10 \
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
&& locale-gen ${LC_ALL} \
&& dpkg-reconfigure locales \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& sync
RUN echo "#log: Setup system" \
&& set -x \
&& apt-get update -y \
&& apt-get install -y \
--no-install-recommends \
apt-transport-https=1.8.2.1 \
curl=7.64.0-4+deb10u1 \
git=1:2.20.1-2+deb10u3 \
make=4.2.1-1.2 \
sudo=1.8.27-1+deb10u2 \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& sync
ENV project iotjs-express
COPY . /usr/local/opt/${project}/src/${project}/
WORKDIR /usr/local/opt/${project}/src/${project}/
RUN echo "#log: Install iotjs" \
&& set -x \
&& make setup \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& sync
RUN echo "#log: ${project}: Preparing sources" \
&& set -x \
&& make help \
&& make \
&& make check \
&& sync
EXPOSE 8080
WORKDIR /usr/local/opt/${project}/src/${project}/
ENTRYPOINT [ "/usr/bin/make" ]
CMD [ "start" ]