-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 761 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 761 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
26
27
28
29
FROM mhart/alpine-node:4.4.7
MAINTAINER Tim Thomas <tithomas@cisco.com>
WORKDIR /app
# Initial seed files for NPM install
ADD ./package.json /app/package.json
ADD ./typings.json /app/typings.json
# Account for the Cisco proxy (typings can get it from rc file in project directory)
ADD ./.typingsrc /app/.typingsrc
# ENV NPM_CONFIG_LOGLEVEL info
RUN npm config set proxy http://proxy.esl.cisco.com:8080 && npm config set https-proxy http://proxy.esl.cisco.com:8080
# Install dependencies - is the typings install redundant here?
RUN npm install --unsafe-perm=true
# Add the rest of the sources
ADD . /app
ENV HTTP_PROXY "http://proxy.esl.cisco.com:8080"
# lite-server defaults to port 3000, browser-sync UI to 3001
EXPOSE 3000-3001
CMD ["npm","start"]