FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
addons-frontend/Dockerfile at master · bhavyaagg/addons-frontend · GitHub
bhavyaagg
addons-frontend
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
addons-frontend
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (37 loc) · 1.48 KB
Breadcrumbs
addons-frontend
/
Dockerfile
Copy path
File metadata and controls
45 lines (37 loc) · 1.48 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
FROM
node:6-slim
#
Install node_modules into a different directory to avoid npm/npm#9863.
RUN
mkdir -p /srv/node
ADD
package.json /srv/node/
WORKDIR
/srv/node
#
This file has been downloaded from: https://dl.yarnpkg.com/debian/pubkey.gpg
COPY
docker/etc/pki/yarnpkg.gpg.key /etc/pki/yarnpkg.gpg.key
RUN
buildDeps=
' \
git \
yarn \
'
&& \
#
`apt-transport-https` is required to use https deb repositories
apt-get update -y && \
apt-get install -y --no-install-recommends apt-transport-https && \
#
configure Yarn repository, see: https://yarnpkg.com/en/docs/install#linux-tab
apt-key add /etc/pki/yarnpkg.gpg.key && \
echo
"deb https://dl.yarnpkg.com/debian/ stable main"
> /etc/apt/sources.list.d/yarn.list && \
#
the base image installs yarn, let's be sure we use ours
rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg && \
#
install deps
apt-get update -y && \
apt-get install -y --no-install-recommends $buildDeps && \
yarn install && \
#
cleanup
#
apt-get purge -y $buildDeps && \
rm -rf /var/lib/apt/lists/*
ADD
. /srv/code/
WORKDIR
/srv/code
#
The V2 Pipeline expects version.json to be located in /app/
#
As a temporary measure symlink to the version.json generated by Circle-CI
RUN
mkdir /app && ln -s /srv/code/version.json /app/version.json
#
Replace the local node_modules with the ones we installed above.
RUN
rm -rf node_modules
RUN
ln -s /srv/node/node_modules
ENV
SERVER_HOST 0.0.0.0
ENV
SERVER_PORT 4000
CMD
yarn start
Back
|
FazBrowse Home
|
New Git URL