-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
31 lines (23 loc) · 860 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
FROM python:3.6-alpine
LABEL maintainer frosty5689 <[email protected]>
RUN apk add --no-cache --update \
ca-certificates \
tzdata \
&& update-ca-certificates \
&& pip install --upgrade --no-cache-dir setuptools pyinotify envparse \
&& rm -rf /root/.cache
ARG TRACKMA_VERSION=master
RUN apk add --no-cache --update --virtual build-dependencies wget unzip && \
wget -O /tmp/trackma-$TRACKMA_VERSION.zip https://github.com/z411/trackma/archive/$TRACKMA_VERSION.zip && \
ls -l /tmp && \
mkdir -p /opt && \
unzip /tmp/trackma-$TRACKMA_VERSION.zip -d /opt && \
mv /opt/trackma* /opt/trackma &&\
cd /opt/trackma && \
python setup.py develop && \
rm -rf /tmp/trackma-$TRACKMA_VERSION.zip && \
apk del build-dependencies
ADD run/* /opt/trackma/
VOLUME /config
WORKDIR /opt/trackma
CMD ["/opt/trackma/start.sh"]