-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
38 lines (31 loc) · 933 Bytes
/
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
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MPL-2.0
FROM python:3.7-buster
LABEL maintainer="Philippe Coval ([email protected])"
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}
ENV project sense-hat-adapter
ENV workdir /root/.mozilla-iot/addons/${project}
ADD . ${workdir}
WORKDIR ${workdir}
RUN echo "# log: ${project}: Setup system" \
&& set -x \
&& apt-get clean \
&& apt-get update \
&& apt-get install -y \
libjpeg-dev \
&& sync
RUN echo "# log: ${project}: Building package" \
&& set -x \
&& ./package.sh \
&& sync
WORKDIR ${workdir}
RUN echo "# log: ${project}: Distribute package" \
&& set -x \
&& install -d /usr/local/opt/${project}/dist \
&& install ${project}-*.tgz /usr/local/opt/${project}/dist \
&& tar tvfz /usr/local/opt/${project}/dist/${project}-*.tgz \
&& sha256sum /usr/local/opt/${project}/dist/* \
&& sync