forked from paritytech/substrate-api-sidecar
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
41 lines (30 loc) · 1.01 KB
/
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:18.12.1-alpine AS builder
WORKDIR /opt/builder
COPY . .
RUN yarn install && \
yarn build
# ---------------------------------
FROM docker.io/library/node:18.12.1-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" ]