-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (23 loc) · 833 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
FROM jpvantassel/geopsy-docker:3.4.2-qt5.14
LABEL IMAGE_NAME="jpvantassel/swbatch:0.4.0"
LABEL IMAGE_NAME_ALT="jpvantassel/swbatch:geopsy-v3.4.2"
LABEL MAINTAINER="Joseph P. Vantassel <joseph.p.vantassel@gmail.com>"
RUN sudo apt update \
&& sudo apt upgrade --yes \
&& sudo apt install --yes --quiet --no-install-recommends \
python3 \
python3-pip \
&& sudo apt clean
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
SHELL ["/bin/bash", "-ec"]
ADD requirements.txt /home/user/
RUN python3 -m pip install virtualenv \
&& python3 -m virtualenv /home/user/venv \
&& source /home/user/venv/bin/activate \
&& pip install -r /home/user/requirements.txt \
&& rm /home/user/requirements.txt \
&& mkdir /home/user/analysis/
ADD swbatch.py /home/user/
WORKDIR /home/user/
CMD ["python3", "/home/user/analysis/swbatch.py", "--help"]