-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (35 loc) · 1004 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
33
34
35
36
37
38
39
40
41
# Base image
FROM python:3
# Set working directory
WORKDIR /home
# Install required packages using apt
RUN apt-get update && \
apt-get install -y apt-utils && \
apt-get install -y \
ffmpeg \
gdal-bin \
gfortran \
libgdal-dev \
libgeos-dev \
libproj-dev \
proj-bin \
proj-data \
python-gdal \
wget
# Copy requirements file into container
COPY requirements.txt /tmp/requirements.txt
# Install required Python packages using pip
RUN pip install numpy && \
pip install -r /tmp/requirements.txt
# Install latest version of Badlands from GitHub
RUN cd .. && \
git clone https://github.com/badlands-model/badlands.git && \
git clone https://github.com/badlands-model/badlands-companion.git && \
cd badlands/badlands && \
python setup.py install && \
cd ../../badlands-companion && \
python setup.py install && \
cd .. && \
rm -rf ./badlands*
# Enter Bash shell
CMD [ "/bin/bash" ]