forked from Alethio/ethereum-lite-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (24 loc) · 774 Bytes
/
Dockerfile
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
FROM node:10.16 AS build
WORKDIR /build
COPY package.json package-lock.json ./
RUN npm install
RUN npm i -g @alethio/cms-plugin-tool@^1.0.0-beta.5
COPY . .
RUN npm run build --verbose
RUN acp install \
@alethio/[email protected] \
@alethio/[email protected] \
@alethio/[email protected] \
@alethio/[email protected] \
@alethio/[email protected]
FROM nginx:stable-alpine
RUN apk update && \
apk add nodejs
COPY --from=build /build/dist /usr/share/nginx/html
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf
WORKDIR /app
COPY config.default.json .
COPY set-env-vars.js .
COPY .docker/entrypoint.sh .
ENTRYPOINT ["./entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]