Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerfile: package netcat=1.10-41.1 was not found #614

Closed
ezradiniz opened this issue Oct 3, 2021 · 0 comments · Fixed by #615
Closed

dockerfile: package netcat=1.10-41.1 was not found #614

ezradiniz opened this issue Oct 3, 2021 · 0 comments · Fixed by #615

Comments

@ezradiniz
Copy link
Contributor

Describe the bug
Impossible to build prest using dockerfile

To Reproduce

$ docker image build -t prest .
Sending build context to Docker daemon  20.03MB
Step 1/12 : FROM registry.hub.docker.com/library/golang:1.17 as builder
 ---> 738eb0f0e1c9
Step 2/12 : WORKDIR /workspace
 ---> Using cache
 ---> 6d3b97ac5b10
Step 3/12 : COPY . .
 ---> Using cache
 ---> aaa410e0f9b6
Step 4/12 : RUN go mod download      && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "-s -w" -o prestd cmd/prestd/main.go     && apt-get update && apt-get install --no-install-recommends -yq netcat=1.10-41.1
 ---> Running in a53c17b876b0
Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [44.2 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2300 B]
Fetched 8420 kB in 2s (4901 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '1.10-41.1' for 'netcat' was not found
The command '/bin/sh -c go mod download      && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "-s -w" -o prestd cmd/prestd/main.go     && apt-get update && apt-get install --no-install-recommends -yq netcat=1.10-41.1' returned a non-zero code: 100

Desktop (please complete the following information):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants