forked from bcgov/esm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (31 loc) · 1.19 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
FROM node:0.10
MAINTAINER Shea Phillips, [email protected]
WORKDIR /home/mean
# Install Mean.JS Prerequisites
RUN npm install -g grunt-cli bower forever yarn
# Install Mean.JS packages
ADD package.json /home/mean/package.json
RUN git config --global url."https://".insteadOf git:// && yarn install
# Manually trigger bower. Why doesnt this work via npm install?
ADD .bowerrc /home/mean/.bowerrc
ADD bower.json /home/mean/bower.json
RUN git config --global url."https://".insteadOf git:// && bower install --config.interactive=false --allow-root
# Make everything available for start
ADD . /home/mean
RUN grunt buildprod
# Set environment to production
ENV NODE_ENV production
# Set location where uploads files should be stored
ENV UPLOAD_PATH /uploads
# Provide a mount point for uploaded files so it can be mapped to a host filesystem location at runtime.
VOLUME /uploads
EXPOSE 3000
# some metadata we can use for traceability
#ARG gitURL=http://github.com/bcgov/esm-server
#ARG gitCommit=unknown
#ARG gitBranch=unknown
#ARG gitCommitter=unknown
#ARG builtBy=Jenkins
#
#LABEL gitURL=$gitURL gitCommit=$gitCommit gitBranch=$gitBranch gitCommitter=$gitCommitter builtBy=$builtBy
CMD ["./run.sh"]