-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
executable file
·47 lines (39 loc) · 1.01 KB
/
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
42
43
44
45
46
47
## Docker file to build app as container
FROM wnameless/oracle-xe-11g
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 \
build-essential \
bzip2 \
curl \
g++ \
git \
make \
python \
&& curl -o- \
https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh \
| /bin/bash \
&& /bin/bash -c " \
source /root/.nvm/nvm.sh \
&& nvm install 4.2.4 \
"
# copy application (ignores set in .dockerignore)
COPY . /hazdev-project
# configure application
RUN /bin/bash -c " \
source /root/.nvm/nvm.sh; \
export NON_INTERACTIVE=true; \
source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh; \
cd /hazdev-project \
&& npm install \
&& ./src/lib/pre-install \
&& rm -r \
/root/.npm \
/tmp/npm* \
"
WORKDIR /hazdev-project
EXPOSE 8000
ENTRYPOINT src/lib/run