-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
28 lines (22 loc) · 922 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
FROM docker.io/library/node:22.6-alpine3.20
ARG VCS_REF=master
ARG BUILD_DATE=""
ARG REGISTRY_PATH=docker.io/paritytech
ARG PROJECT_NAME=""
LABEL io.parity.image.authors="[email protected]" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${REGISTRY_PATH}/${PROJECT_NAME}-faucet" \
io.parity.image.description="Generic Faucet for Substrate based chains" \
io.parity.image.source="https://github.com/paritytech/${PROJECT_NAME}/blob/${VCS_REF}/Dockerfile" \
io.parity.image.documentation="https://github.com/paritytech/${PROJECT_NAME}/blob/${VCS_REF}/README.md" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}"
WORKDIR /faucet
COPY .yarn/ ./.yarn/
COPY .papi/ ./.papi/
COPY package.json env.faucet.config.json yarn.lock .yarnrc.yml ./
RUN yarn --immutable
COPY . .
RUN yarn papi
RUN yarn build
CMD yarn migrations:run && yarn start