forked from cfpb/grasshopper-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 707 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Docker image for grasshopper-loader
# To build, run docker build --rm --tag=hmda/<image-name>:<tag-name> .
# To test, run ./docker-test.sh <image-name>:<tag-name> <cli args>
# To run, run ./docker-run <image-name>:<tag-name> <cli args>
FROM geodata/gdal:1.11.2
MAINTAINER Wyatt Pearsall <wyatt.pearsall@cfpb.gov>
USER root
RUN apt-get update && apt-get install -y curl git && \
curl -sL https://deb.nodesource.com/setup_5.x | sudo bash - && \
apt-get install -y nodejs &&\
npm update -g npm &&\
mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN useradd notroot && chown -R notroot /usr/src/app && chmod u+rwx /usr/src/app
RUN npm install
USER notroot
CMD /bin/bash