Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
afropython-site
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
22 lines (16 loc) · 509 Bytes
master
Breadcrumbs
afropython-site
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
22 lines (16 loc) · 509 Bytes
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
FROM library/node:8-alpine as dependencies
COPY package.json package-lock.json ./
RUN npm config set progress=false && npm config set depth 0 \
&& npm install \
&& mkdir /opt/app \
&& cp -R ./node_modules /opt/app
FROM dependencies as builder
WORKDIR /opt/app
COPY . .
RUN npm run build
FROM library/nginx:1.13.12-alpine as runtime
COPY nginx.conf /etc/nginx/conf.d/
RUN rm -r /usr/share/nginx/html/*
COPY --from=builder /opt/app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx","-g","daemon off;"]
You can’t perform that action at this time.