forked from jmfee-usgs/hydra-web-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·37 lines (30 loc) · 822 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
## Docker file to build app as container
FROM debian:jessie
MAINTAINER "Jeremy Fee" <[email protected]>
LABEL dockerfile_version="v0.1.0"
# install dependencies
RUN apt-key update -y \
&& apt-get update -y \
&& apt-get install -y \
bzip2 \
curl \
git \
&& curl -o- \
https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh \
| /bin/bash \
&& /bin/bash --login -c " \
nvm install 4.2.4
# copy application (ignores set in .dockerignore)
COPY . /hazdev-project
# configure application
RUN /bin/bash --login -c " \
cd /hazdev-project \
&& npm install \
&& ./src/lib/pre-install --non-interactive \
&& rm -r \
/root/.npm \
/tmp/npm* \
"
WORKDIR /hazdev-project
EXPOSE 8881
CMD /bin/bash --login -c "node start"