Skip to content

bug: postee ui dockerfile seems broken #564

@simar7

Description

@simar7

Description

Unable to build Postee UI

What did you expect to happen?

No errors

What happened instead?

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 "[email protected]" is incompatible with requested version "glob-parent@^6.0.1"
#22 1.462 warning Resolution field "[email protected]" is incompatible with requested version "ansi-regex@^3.0.0"
#22 1.687 [2/4] Fetching packages...
#22 30.45 error @achrinza/[email protected]: 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions