Skip to content

Commit 9d10aad

Browse files
paanahmadfarhan1981
authored andcommitted
fix: Dockerfile fix after monorepo changes
temp fix to make it build. Its building without lockfile now. Fix in next release.
1 parent c80e7a3 commit 9d10aad

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

apps/linkstash-frontend/Dockerfile

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ WORKDIR /app
88

99
# Install dependencies based on the preferred package manager
1010
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
11-
RUN \
12-
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13-
elif [ -f package-lock.json ]; then npm ci; \
14-
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
15-
else echo "Lockfile not found." && exit 1; \
16-
fi
17-
11+
#RUN \
12+
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13+
# elif [ -f package-lock.json ]; then npm ci; \
14+
# elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
15+
# else echo "Lockfile not found." && exit 1; \
16+
# fi
17+
RUN npm install
1818

1919
# Rebuild the source code only when needed
2020
FROM base AS builder
@@ -26,13 +26,15 @@ COPY . .
2626
# Learn more here: https://nextjs.org/telemetry
2727
# Uncomment the following line in case you want to disable telemetry during the build.
2828
# ENV NEXT_TELEMETRY_DISABLED 1
29-
30-
RUN \
31-
if [ -f yarn.lock ]; then yarn run build; \
32-
elif [ -f package-lock.json ]; then npm run build; \
33-
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
34-
else echo "Lockfile not found." && exit 1; \
35-
fi
29+
#
30+
#RUN \
31+
# if [ -f yarn.lock ]; then yarn run build; \
32+
# elif [ -f package-lock.json ]; then npm run build; \
33+
# elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
34+
# else echo "Lockfile not found." && exit 1; \
35+
# fi
36+
37+
RUN npm run build
3638

3739
# Production image, copy all the files and run next
3840
FROM base AS runner

0 commit comments

Comments
 (0)