fixed ci?
Some checks failed
Docker Build & Publish / Build Docker (push) Failing after 50s

This commit is contained in:
christian 2024-05-12 07:23:07 +02:00
parent 7a4d32dd2b
commit e99e19e4ec

View File

@ -1,13 +1,14 @@
FROM node:18-alpine AS base FROM node:18-alpine AS base
# Install dependencies only when needed
FROM base AS deps 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 RUN apk add --no-cache libc6-compat
WORKDIR /app WORKDIR /app
# Install dependencies based on the preferred package manager # Debug: List files in current directory
RUN ls -la
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN ls -la # List files after copying to confirm presence
RUN \ RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \ elif [ -f package-lock.json ]; then npm ci; \