You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The go websocket container called ws in the oathkeeper example fails to build. The logs are saying that the executable in the Dockerfile's entrypoint doesn't exist.
I'm not very proficient at golang, but it seems like the problem is that the go build is made at a stage with a 'golang' base image, but is then run on a different 'alpine' image. I managed to make it work by doing everything in a 'golang:alpine' image like so:
`FROM golang:alpine
RUN mkdir /build
ADD . /build
WORKDIR /build
RUN GOOS=linux GOARCH=amd64 go build -o ws main.go
Preflight checklist
Describe the bug
The go websocket container called ws in the oathkeeper example fails to build. The logs are saying that the executable in the Dockerfile's entrypoint doesn't exist.
Reproducing the bug
cd code-examples/oathkeeper
docker compose up --build
Relevant log output
Relevant configuration
No response
Version
master
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
I ran it on WSL but it failed on Docker Desktop for Windows too.
The text was updated successfully, but these errors were encountered: