forked from base/onchainsummer.xyz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 739 Bytes
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
FROM 652969937640.dkr.ecr.us-east-1.amazonaws.com/containers/node:v16
RUN apt-get update && apt-get install -y zip python3 make gcc g++
RUN yarn global add pm2
ENV NODE_ENV="production"
ENV NEXT_PUBLIC_AARWEAVE_API_URL="https://arweave.net/graphql"
ENV NEXT_PUBLIC_RESERVOIR_API_URL="https://onchainsummer.xyz/api/reservoir"
ENV NEXT_PUBLIC_CHAIN_ENV="mainnet"
ENV NEXT_PUBLIC_MINT_DOT_FUN_API_URL="https://api.mint.fun/api/v1"
ENV NEXT_PUBLIC_MINT_DOT_FUN_CHAIN_ID="8453"
ENV __NEXT_PRIVATE_PREBUNDLED_REACT="next"
WORKDIR /app
COPY . .
# Install dependencies (including dev, which are needed for build)
RUN yarn --immutable --production=false
RUN yarn build
EXPOSE 3000
CMD ["pm2", "start", "yarn", "--no-daemon", "--", "start"]