-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
31 lines (25 loc) · 1.11 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
# automatically generated: 2020-05-20T08:40:04.406489
FROM agdrone/rgb-plot-base-image:latest
LABEL maintainer="Jacob van der Leeuw <[email protected]>"
COPY requirements.txt packages.txt /home/extractor/
USER root
RUN [ -s /home/extractor/packages.txt ] && \
(echo "Installing packages" && \
apt-get update && \
cat /home/extractor/packages.txt | xargs apt-get install -y --no-install-recommends && \
rm /home/extractor/packages.txt && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*) || \
(echo "No packages to install" && \
rm /home/extractor/packages.txt)
RUN [ -s /home/extractor/requirements.txt ] && \
(echo "Install python modules" && \
python -m pip install -U --no-cache-dir pip && \
python -m pip install --no-cache-dir setuptools && \
python -m pip install --no-cache-dir -r /home/extractor/requirements.txt && \
rm /home/extractor/requirements.txt) || \
(echo "No python modules to install" && \
rm /home/extractor/requirements.txt)
USER extractor
COPY algorithm_rgb.py /home/extractor/