runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x311ca63]
goroutine 58 [running]:
github.com/werf/werf/pkg/build.(*BuildPhase).AfterImageStages(0xc0011de340?, {0x3fe11fb?, 0xc000ccb0b0?}, 0xc000b88000)
/git/pkg/build/build_phase.go:571 +0x63
github.com/werf/werf/pkg/build.(*Conveyor).doImage.func2()
/git/pkg/build/conveyor.go:729 +0x489
github.com/werf/logboek/internal/stream.(*Stream).logProcess.func1()
/go/pkg/mod/github.com/werf/logboek@v0.5.5/internal/stream/process.go:150 +0x1b
github.com/werf/logboek/internal/stream.(*Stream).logProcess(0xc0010f2048, {0xc0010b2080?, 0x38?}, 0xc0010c6000, 0xc0010b4040)
/go/pkg/mod/github.com/werf/logboek@v0.5.5/internal/stream/process.go:157 +0x1cf
github.com/werf/logboek/internal/stream.(*LogProcess).DoError(0xc0010b4000, 0xc0010b4040)
/go/pkg/mod/github.com/werf/logboek@v0.5.5/internal/stream/process_types.go:201 +0xa5
github.com/werf/werf/pkg/build.(*Conveyor).doImage(0x0?, {0x498ccc8?, 0xc000ccb0b0}, 0xc000b88000, {0xc000bd2000, 0x1, 0x1})
/git/pkg/build/conveyor.go:702 +0x198
github.com/werf/werf/pkg/build.(*Conveyor).doImagesInParallel.func3({0x498ccc8, 0xc000ccb0b0}, 0xc000f07eb8?)
/git/pkg/build/conveyor.go:657 +0x215
github.com/werf/werf/pkg/util/parallel.DoTasks.func1()
/git/pkg/util/parallel/parallel.go:80 +0x304
created by github.com/werf/werf/pkg/util/parallel.DoTasks
/git/pkg/util/parallel/parallel.go:73 +0x21e
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 1
Докер файл такой
FROM node:18-alpine as base-node18-alphine-image
FROM base-node18-alphine-image as builder
WORKDIR /app
COPY package.json ./
COPY tsconfig.json ./
COPY src ./src
RUN ls -a
RUN npm install
RUN npm run build
FROM base-node18-alphine-image
WORKDIR /app
ENV NODE_ENV production
COPY package.json ./
RUN npm install --omit=dev
COPY --from=builder --chown=node:node /app/build/*.js /app/build/
COPY --from=builder --chown=node:node /app/contracts /app/contracts/
USER node
RUN ls -a
ENTRYPOINT ["node", "/app/build/main.js", "--port=8000" ]
Помогите пожалуйста
Надо смотреть. Но теперь уже видимо нв следующей неделе.
Экспериментально выяснил что если в dockerfile FROM node:18-alpine as base-node18-alphine-image FROM ... То будет ошибка А если FROM node:18-alpine as base-node18-alphine-image WORKDIR /app FROM ... То не будет
Известная проблема, пока можно полечить вот так export WERF_STAGED_DOCKERFILE_VERSION=v2
Обсуждают сегодня