fix dockerfile
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 44s

This commit is contained in:
Lee 2024-04-25 23:40:53 +01:00
parent c8990f21cd
commit 12d0a00ad0

@ -1,7 +1,12 @@
FROM node:21-alpine AS base
# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \