Closed pratio closed 1 year ago
docker build -t astroplate . [+] Building 0.8s (12/16) => [internal] load .dockerignore 0.0s => => transferring context: 112B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.61kB 0.0s => [internal] load metadata for docker.io/library/node:18-alpine 0.7s => [internal] load build context 0.0s => => transferring context: 6.17kB 0.0s => [base 1/1] FROM docker.io/library/node:18-alpine@sha256:3482a20c97e401b56ac50ba8920cc7b5b2022bfc6aa7d4e4c231755770cf892f 0.0s => CACHED [builder 1/4] WORKDIR /app 0.0s => CACHED [runner 2/4] RUN addgroup --system --gid 1001 nodejs 0.0s => CACHED [runner 3/4] RUN adduser --system --uid 1001 astro 0.0s => CACHED [deps 1/4] RUN apk add --no-cache libc6-compat 0.0s => CACHED [deps 2/4] WORKDIR /app 0.0s => CACHED [deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ 0.0s => ERROR [deps 4/4] RUN if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && 0.1s ------ > [deps 4/4] RUN if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; else echo "Lockfile not found." && exit 1; fi: #0 0.103 Lockfile not found. ------ Dockerfile:11 -------------------- 10 | 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 yarn global add pnpm && pnpm i --frozen-lockfile; \ 15 | >>> else echo "Lockfile not found." && exit 1; \ 16 | >>> fi 17 | -------------------- ERROR: failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; else echo \"Lockfile not found.\" && exit 1; fi" did not complete successfully: exit code: 1
closed as duplicate #8