-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
51 lines (40 loc) · 1.51 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
42
43
44
45
46
47
48
49
50
51
ARG AWS_ECR_URL=default-value-in-dockerfile
ARG REPO_NAME=misc
FROM $AWS_ECR_URL/$REPO_NAME:node-18.9.0
#RUN apk update && apk add git curl jq
#RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*
RUN apt-get update && apt-get install -y git curl jq nano net-tools
RUN apt install -y python3.9
WORKDIR /holograph-cli
COPY package.json /holograph-cli
COPY yarn.lock /holograph-cli
COPY . /holograph-cli
RUN yarn install --prefer-offline --silent --frozen-lockfile --non-interactive
RUN yarn build
RUN npm install -location=global ../holograph-cli
# experimental / develop / testnet / mainnet
ENV HOLOGRAPH_ENVIRONMENT=a-super-fancy-environment
ENV CONFIG_FILE=a-super-config-file.json
ENV PASSWORD=a-super-secret-password
ENV HOLO_CLI_CMD=TeRmInAtOr
ENV HOLO_INDEXER_HOST=ThE_FuTuRe
ENV HOLO_OPERATOR_HOST=ThE_FuTuRe
#
ENV ENABLE_DEBUG=default-value
ENV ENABLE_SYNC=default-value
ENV HEALTHCHECK=default-value
ENV MODE=default-value
#
ENV ENABLE_UNSAFE=default-value
ENV ENABLE_REPLAY=undefined
ENV ENABLE_PROCESS_BLOCK_RANGE=undefined
# api[default] / file / disable
ENV UPDATE_BLOCK_HEIGHT=api
# we use liveness/readiness probes in k8s
HEALTHCHECK none
EXPOSE 6000
RUN chmod 755 /holograph-cli/entrypoint.sh
# notice: The ENTRYPOINT specifies a command that will always be executed when the container starts.
ENTRYPOINT ["/holograph-cli/entrypoint.sh"]
# notice: The CMD specifies arguments that will be fed to the ENTRYPOINT
# https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact