forked from e-mission/e-mission-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev.ui-only
62 lines (52 loc) · 2.32 KB
/
Dockerfile.dev.ui-only
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# python 3
FROM ubuntu:trusty
ENV NODE_VERSION 9.4.0
ENV ARCH='x64'
MAINTAINER K. Shankari ([email protected])
# setup the correct version of node using nvm
RUN apt-get -y install curl
RUN apt-get -y install xz-utils
# copied from the official nodejs Dockerfile
RUN set -ex \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
FD3A5288F042B6850C66B31F09FE44734EB7990E \
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
77984A986EBC2AA786BC0F66B01FBB92821C587A \
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
4ED778F539E3634C779C87C6D7062848A1AB005C \
A48C2BEE680E841632CD4E44F07496B3EB3C1762 \
B9E2F5981AA6E0CD28160D9FF13993A75599653C \
; do \
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
done \
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
# smoke tests
&& node --version \
&& npm --version
# RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
# RUN /bin/bash -c "source /root/.nvm/nvm.sh; nvm install 9.4.0"
# Upgrade the version of npm to the correct one
RUN npm install -g [email protected]
# Install bower
RUN npm install -g [email protected]
# Git for checking out code
RUN apt-get -y install git
ADD start_devapp_serve.sh /start_devapp_serve.sh
# ADD autoreload.js /autoreload.js
# ADD chokidar-index.js /chokidar-index.js
#declare environment variables
ENV PHONE_REPO='https://github.com/e-mission/e-mission-phone.git'
EXPOSE 3000
CMD ["/bin/bash", "/start_devapp_serve.sh"]