forked from geo-data/gdal-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 878 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
##
# epn-vespa/gdal-fits
#
# This creates a Fedora derived base image that installs the GDAL
# git clone compiled with the improved FITS driver. The build process
# is based on that defined in
# <https://voparis-confluence.obspm.fr/display/VES/GDAL+with+FITS>
#
# Fedora 29
FROM fedora:29
MAINTAINER Chiara Marmo <[email protected]>
# Install the application.
ADD . /usr/local/src/gdal-fits-docker/
RUN /usr/local/src/gdal-fits-docker/build.sh
# Externally accessible data is by default put in /data
WORKDIR /data
VOLUME ["/data"]
# Create local user : UID and USER are arguments
ARG USER_ID=1000
ARG USER=user
RUN groupadd -r -g ${USER_ID} ${USER} &&\
useradd -r -u ${USER_ID} -g ${USER} \
-m -d /home/${USER} ${USER}
# Run from USER
USER ${USER}
# Open QGIS FITS compatible by default
#CMD qgis
# gdalinfo version
CMD gdalinfo --version