-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (31 loc) · 928 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
##
# lisastillwell/py-grass
#
# This creates an Ubuntu derived base image that installs GRASS from a specific
# subversion checkout compiled against a specific GDAL version.
#
# Ubuntu 14.04 Trusty Tahyr
FROM ubuntu:trusty
MAINTAINER Lisa Stillwell <[email protected]>
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install the application.
ADD . /usr/local/src/grass-docker/
RUN apt-get update -y && \
apt-get install -y make && \
make -C /usr/local/src/grass-docker install clean && \
apt-get purge -y make
# Externally accessible data is by default put in /data.
#WORKDIR /data
#VOLUME ["/data"] - don't need this for Discovery Env use
# Ensure the SHELL is picked up by grass.
ENV SHELL /bin/bash
# All commands are executed by grass.
ENTRYPOINT ["python"]
# Output GRASS version by default.
CMD ["-V"]
#for testing
#CMD ["/bin/bash"]