-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (45 loc) · 1.77 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
48
49
50
51
52
53
54
55
56
57
# This is the LSDTopoTools visualisation container
# It includes all the python packages needed to run LSDMappingTools
# Pull base image. We start from the miniconda imade
FROM conda/miniconda3
MAINTAINER Simon Mudd ([email protected]) and Fiona Clubb ([email protected])
# Need this to shortcut the stupid tzdata noninteractive thing
ARG DEBIAN_FRONTEND=noninteractive
# Add a bunch of utilities that will be used to fetch data
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
wget \
tzdata \
zip \
&& rm -rf /var/lib/apt/lists/*
# Add the conda forge
RUN conda config --add channels conda-forge
# Set the channel
RUN conda config --set channel_priority strict
# Update conda
RUN conda update -c conda-forge conda
# Now add some conda packages
RUN conda install -y -c conda-forge \
python=3.6.7 numpy scipy \
pandas=0.24.2 matplotlib \
gdal geopandas shapely \
fiona rasterio \
pyproj cartopy \
descartes utm
# Set the 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
# Copy the Liberation Sans fonts and activate them
RUN mkdir /usr/share/fonts/truetype/LiberationSans/
COPY ./LiberationSans/LiberationSans-Bold.ttf /usr/share/fonts/truetype/LiberationSans/
COPY ./LiberationSans/LiberationSans-BoldItalic.ttf /usr/share/fonts/truetype/LiberationSans/
COPY ./LiberationSans/LiberationSans-Italic.ttf /usr/share/fonts/truetype/LiberationSans/
COPY ./LiberationSans/LiberationSans-Regular.ttf /usr/share/fonts/truetype/LiberationSans/
RUN fc-cache -fv
RUN rm -fr ~/.cache/matplotlib