-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (38 loc) · 1.6 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
43
44
45
46
47
# This is an alpine linux installation for implementation of LSDTopoTools
# Please see documentation
# https://lsdtopotools.github.io/LSDTT_documentation/
# This container can be found at
# https://hub.docker.com/r/lsdtopotools/lsdtt_alpine_docker/
# It is a lightweight distribution, for the full LSDTopoTools distribution,
# please see https://github.com/LSDtopotools/lsdtt_pcl_docker
FROM alpine
MAINTAINER Simon Mudd (simon.m.mudd@ed.ac.uk) and Fiona Clubb (clubb@uni-potsdam.de)
# install essential packages
RUN apk upgrade -U && \
apk update && \
apk add bash && \
apk add --virtual build-dependencies build-base gcc wget unzip tzdata git && \
apk add fftw-dev cmake && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
RUN apk add \
--no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
gdal py3-gdal
# Now an incredibly stupid fix to get libproj.so to work
#RUN ln -s /usr/lib/libproj.so.15 /usr/lib/libproj.so
# update to avoid weird apk error
RUN apk update
# Add an LSDTopoTools working directory
WORKDIR /LSDTopoTools/
# Copy the startup script
COPY Start_LSDTT.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/Start_LSDTT.sh
# Copy the script for fetching example data
COPY Get_LSDTT_example_data.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/Get_LSDTT_example_data.sh
# Get MuddPILE
RUN wget https://raw.githubusercontent.com/LSDtopotools/MuddPILE/master/bin/LSDTT_Alpine/MuddPILEdriver.out
RUN mv MuddPILEdriver.out /usr/local/bin/
RUN chmod +x /usr/local/bin/MuddPILEdriver.out