-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (23 loc) · 982 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
29
30
31
32
33
34
FROM node:18-alpine
# Grab needed environment variables from .env.example
ARG NEXT_PUBLIC_GATEWAY_URL_PRODUCTION
ARG NEXT_PUBLIC_WC_PROJECT_ID
ENV NEXT_PUBLIC_GATEWAY_URL_PRODUCTION $NEXT_PUBLIC_GATEWAY_URL_PRODUCTION
ENV NEXT_PUBLIC_WC_PROJECT_ID $NEXT_PUBLIC_WC_PROJECT_ID
RUN apk add --no-cache libc6-compat git python3 py3-pip make g++ libusb-dev eudev-dev linux-headers
WORKDIR /app
COPY . .
# Fix arm64 timeouts
RUN yarn config set network-timeout 300000 && yarn global add node-gyp
# install deps
RUN yarn install --frozen-lockfile
RUN yarn after-install
COPY ./override/utils.js /app/node_modules/@safe-global/safe-gateway-typescript-sdk/dist
ENV NODE_ENV production
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1
EXPOSE 3000
ENV PORT 3000
CMD ["yarn", "static-serve"]