-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (34 loc) · 1.5 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
FROM arm32v7/debian:jessie-slim
LABEL maintainer="Protik Das <protik77@gmail.com>"
# install the necessary software
RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
ca-certificates \
curl \
python3-numpy \
python3-pil
# do all the installation in /tmp directory
WORKDIR /tmp
# set the version using a variable
ARG RTIMULIB_VERSION=7.2.1-3
# get all th required libraries
RUN curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/librtimulib-dev_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/librtimulib-utils_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/librtimulib7_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/python3-rtimulib_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/p/python-sense-hat/python3-sense-hat_2.2.0-1_armhf.deb
# install the required libraries
RUN dpkg -i \
librtimulib-dev_${RTIMULIB_VERSION}_armhf.deb \
librtimulib-utils_${RTIMULIB_VERSION}_armhf.deb \
librtimulib7_${RTIMULIB_VERSION}_armhf.deb \
python3-rtimulib_${RTIMULIB_VERSION}_armhf.deb \
python3-sense-hat_2.2.0-1_armhf.deb
# cleanups
RUN rm -f /tmp/*.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# setup test directory and copy the test code
WORKDIR /
# command to run if no command specified
CMD ["python3"]