Skip to content

Commit d146cca

Browse files
committed
Clean code
1 parent 37d5cb2 commit d146cca

File tree

2 files changed

+6
-2663
lines changed

2 files changed

+6
-2663
lines changed

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ RUN apk add --no-cache libc6-compat
66
WORKDIR /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* ./
1010
RUN apk add --no-cache git openssh
1111
RUN \
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)
4645
RUN mkdir -p ./public && touch ./public/.gitkeep || true
@@ -69,7 +68,7 @@ USER nextjs
6968

7069
EXPOSE 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

7574
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)