aquasecurity / aquasecurity/postee

bug: postee ui dockerfile seems broken

Open
#564 6 comments 0 reactions 1 assignee Assigned to @afdesk View on GitHub
Dominant language
Go
Stars
204
Forks
65
Avg merge
6d 21h
Merged PRs (30d)
1

Description

## Description

Unable to build Postee UI

## What did you expect to happen?

No errors

## What happened instead?
```shell
GOOS=linux docker build -t simar7/postee-ui:local -f Dockerfile.ui .
[+] Building 38.6s (21/30)
=> [internal] load build definition from Dockerfile.ui 0.0s
=> => transferring dockerfile: 40B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.18.0 0.8s
=> [internal] load metadata for docker.io/library/node:20-alpine3.17 0.8s
=> [internal] load metadata for docker.io/library/golang:1.18-alpine 0.8s
=> [internal] load build context 1.7s
=> => transferring context: 4.17MB 1.6s
=> CACHED [vuebuilder 1/5] FROM docker.io/library/node:20-alpine3.17@sha256:45 0.0s
=> CACHED [gobuilder 1/5] FROM docker.io/library/golang:1.18-alpine@sha256:77f 0.0s
=> [stage-2 1/14] FROM docker.io/library/alpine:3.18.0@sha256:02bb6f428431fbc 0.0s
=> CACHED [stage-2 2/14] RUN mkdir /uiserver 0.0s
=> CACHED [stage-2 3/14] RUN mkdir /uiserver/www 0.0s
=> CACHED [stage-2 4/14] RUN mkdir /server 0.0s
=> CACHED [stage-2 5/14] RUN mkdir /server/database 0.0s
=> CACHED [stage-2 6/14] RUN mkdir /config 0.0s
=> [vuebuilder 2/5] COPY ./ui/frontend /frontend 4.0s
=> [gobuilder 2/5] COPY . /server 4.0s
=> [gobuilder 3/5] WORKDIR /server/ui/backend 0.0s
=> [vuebuilder 3/5] WORKDIR /frontend 0.0s
=> ERROR [vuebuilder 4/5] RUN yarn install 31.3s
=> [gobuilder 4/5] RUN apk add git 1.7s
=> CANCELED [gobuilder 5/5] RUN GOOS=linux GOARCH=amd64 go build --ldflags "- 30.4s
------
> [vuebuilder 4/5] RUN yarn install:
#22 0.594 yarn install v1.22.19
#22 0.730 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
#22 0.737 [1/4] Resolving packages...
#22 1.225 warning Resolution field "glob-parent@5.1.2" is incompatible with requested version "glob-parent@^6.0.1"
#22 1.462 warning Resolution field "ansi-regex@5.0.1" is incompatible with requested version "ansi-regex@^3.0.0"
#22 1.687 [2/4] Fetching packages...
#22 30.45 error @achrinza/node-ipc@9.2.5: The engine "node" is incompatible with this module. Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18". Got "20.2.0"
#22 30.46 error Found incompatible module.
#22 30.46 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
executor failed running [/bin/sh -c yarn install]: exit code: 1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.