forked from paritytech/substrate-api-sidecar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (30 loc) · 1018 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
38
39
40
41
FROM docker.io/library/node:15 as builder
WORKDIR /opt/builder
COPY . .
RUN yarn install && \
yarn build
# ---------------------------------
FROM docker.io/library/node:15-alpine
# metadata
ARG VERSION=""
ARG VCS_REF=master
ARG BUILD_DATE=""
LABEL summary="Substrate-api-sidecar." \
name="parity/substrate-api-sidecar" \
maintainer="[email protected], [email protected]" \
version="${VERSION}" \
description="Substrate-api-sidecar image." \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.source="https://github.com/paritytech/substrate-api-sidecar/blob/\
${VCS_REF}/Dockerfile" \
io.parity.image.documentation="https://github.com/paritytech/substrate-api-sidecar/\
blob/${VCS_REF}/README.md" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}"
WORKDIR /usr/src/app
COPY --from=builder /opt/builder /usr/src/app
ENV SAS_EXPRESS_PORT=8080
ENV SAS_EXPRESS_BIND_HOST=0.0.0.0
USER node
EXPOSE ${SAS_EXPRESS_PORT}
CMD [ "node", "build/src/main.js" ]