fix dockerfile
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 44s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 44s
This commit is contained in:
parent
c8990f21cd
commit
12d0a00ad0
@ -1,7 +1,12 @@
|
|||||||
FROM node:21-alpine AS base
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install dependencies based on the preferred package manager
|
||||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
||||||
RUN \
|
RUN \
|
||||||
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
||||||
|
Loading…
Reference in New Issue
Block a user