Skip to content

Commit eea3a5b

Browse files
committed
dockerize
1 parent d262450 commit eea3a5b

File tree

7 files changed

+9007
-47846
lines changed

7 files changed

+9007
-47846
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.env.example

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ NODE_URL_MAINNET=wss://rpc.reefscan.info/ws
44
RECAPTCHA_SECRET=
55
SENTRY_DNS=
66
ENVIRONMENT=
7-
NETWORK=mainnet
7+
##NETWORK=mainnet
88
GRAPHQL_API_TESTNET=https://squid.subsquid.io/reef-explorer-testnet/graphql
99
GRAPHQL_API_MAINNET=https://squid.subsquid.io/reef-explorer/graphql
10-
JWT_SECRET=XXXXX
10+
##JWT_SECRET=
1111
CHUNK_SIZE=1024
1212
MUTATION_SIZE=100

Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM node:19
2+
3+
ENV NETWORK=mainnet
4+
ENV JWT_SECRET=test123
5+
6+
RUN apt-get update && apt-get -y upgrade
7+
8+
##RUN mkdir /app && chown -R node:node /app
9+
10+
WORKDIR /app
11+
12+
##RUN wget https://raw.githubusercontent.com/eficode/wait-for/v2.2.2/wait-for -O /wait-for && chmod +x /wait-for
13+
14+
##USER node
15+
16+
COPY package.json yarn.lock ./
17+
18+
RUN yarn install --frozen-lockfile
19+
20+
COPY . ./
21+
22+
RUN yarn run build
23+
EXPOSE 3000
24+
CMD [ "yarn", "start" ]

0 commit comments

Comments
 (0)