File tree Expand file tree Collapse file tree 2 files changed +6
-2663
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2663
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,10 @@ RUN apk add --no-cache libc6-compat
66WORKDIR /app
77
88# Install dependencies based on the preferred package manager
9- COPY package.json yarn.lock* package-lock.json* ./
9+ COPY package.json package-lock.json* ./
1010RUN apk add --no-cache git openssh
1111RUN \
12- if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13- elif [ -f package-lock.json ]; then npm ci; \
12+ if [ -f package-lock.json ]; then npm ci; \
1413 else echo "Lockfile not found." && exit 1; \
1514 fi
1615
@@ -38,9 +37,9 @@ ENV NEXT_PUBLIC_GNOSIS_RPC_URL=$NEXT_PUBLIC_GNOSIS_RPC_URL
3837# Next.js collects completely anonymous telemetry data about general usage.
3938# Learn more here: https://nextjs.org/telemetry
4039# Uncomment the following line in case you want to disable telemetry during the build.
41- ENV NEXT_TELEMETRY_DISABLED 1
40+ ENV NEXT_TELEMETRY_DISABLED= 1
4241
43- RUN yarn build
42+ RUN npm run build
4443
4544# Ensure public directory exists (create if it doesn't and add a placeholder file)
4645RUN mkdir -p ./public && touch ./public/.gitkeep || true
@@ -69,7 +68,7 @@ USER nextjs
6968
7069EXPOSE 3000
7170
72- ENV PORT 3000
73- ENV HOSTNAME 0.0.0.0
71+ ENV PORT= 3000
72+ ENV HOSTNAME= 0.0.0.0
7473
7574CMD ["node" , "server.js" ]
You can’t perform that action at this time.
0 commit comments