FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
send/Dockerfile at master · mozilla/send · GitHub
This repository was archived by the owner on May 22, 2021. It is now read-only.
mozilla
send
Repository navigation
Code
Issues
143
(143)
Pull requests
13
(13)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
send
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (51 loc) · 1.24 KB
Breadcrumbs
send
/
Dockerfile
Copy path
File metadata and controls
59 lines (51 loc) · 1.24 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
#
#
Firefox Send - Mozilla
#
#
License https://github.com/mozilla/send/blob/master/LICENSE
#
#
#
Build project
FROM
node:12 AS builder
RUN
set -x \
#
Add user
&& addgroup --gid 10001 app \
&& adduser --disabled-password \
--gecos
''
\
--gid 10001 \
--home /app \
--uid 10001 \
app
COPY
--chown=app:app . /app
USER
app
WORKDIR
/app
RUN
set -x \
#
Build
&& PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm ci \
&& npm run build
#
Main image
FROM
node:12-slim
RUN
set -x \
#
Add user
&& addgroup --gid 10001 app \
&& adduser --disabled-password \
--gecos
''
\
--gid 10001 \
--home /app \
--uid 10001 \
app
RUN
apt-get update && apt-get -y install \
git-core \
&& rm -rf /var/lib/apt/lists/*
USER
app
WORKDIR
/app
COPY
--chown=app:app package*.json ./
COPY
--chown=app:app app app
COPY
--chown=app:app common common
COPY
--chown=app:app public/locales public/locales
COPY
--chown=app:app server server
COPY
--chown=app:app --from=builder /app/dist dist
RUN
npm ci --production && npm cache clean --force
RUN
mkdir -p /app/.config/configstore
RUN
ln -s dist/version.json version.json
ENV
PORT=1443
EXPOSE
${PORT}
CMD
[
"node"
,
"server/bin/prod.js"
]
Back
|
FazBrowse Home
|
New Git URL