Skip to content

Commit

Permalink
asdsad
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosz-skejcik committed Dec 6, 2023
1 parent 5fefe68 commit 5f49e41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
# ENV NEXT_TELEMETRY_DISABLED 1

RUN pnpm run build
RUN \
if [ -f yarn.lock ]; then yarn build; \
elif [ -f package-lock.json ]; then npm run build; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm run build; \
else echo "Lockfile not found." && exit 1; \
fi

# If using npm comment out above and use below instead
# RUN npm run build
Expand Down

0 comments on commit 5f49e41

Please sign in to comment.