-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 840 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 840 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
25
FROM mhart/alpine-node:6.5.0
MAINTAINER Camille Reynders
RUN apk upgrade libssl1.0 --update-cache \
&& apk add --no-cache --virtual .build-deps ca-certificates git
# add group "dpac"
# add user "dpac" with (-s) bash as a login shell, (-G) add it to an existing group "dpac" and (-D) without password
#RUN addgroup dpac \
# && adduser dpac -s /bin/bash -G dpac -D
#USER dpac
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
ADD .bowerrc /tmp/.bowerrc
ADD bower.json /tmp/bower.json
RUN cd /tmp && ./node_modules/.bin/bower install --allow-root --quiet
RUN mkdir -p /home/dpac && mv /tmp/node_modules /home/dpac/ && mv /tmp/bower_components /home/dpac
RUN mv /tmp/package.json /home/dpac/package.json && mv /tmp/bower.json /home/dpac/bower.json
ADD webpack.config.js /home/dpac/webpack.config.js
WORKDIR /home/dpac