Skip to content

ERROR: failed to build: failed to solve: process "/bin/sh -c apk add --no-cache ca-certificates" did not complete successfully: exit code: 1 #8

Description

@ivoidcat

=> ERROR [stage-1 2/3] RUN apk add --no-cache ca-certificates 0.3s
=> CACHED [builder 1/7] FROM docker.io/library/golang:1.25-alpine 0.0s
=> ERROR [builder 2/7] RUN apk add --no-cache gcc musl-dev 0.3s

[stage-1 2/3] RUN apk add --no-cache ca-certificates:
0.224 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
0.224 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
0.224 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/main: could not connect to server (check repositories file)
0.224 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/community: could not connect to server (check repositories file)
0.224 ERROR: unable to select packages:
0.224 ca-certificates (no such package):
0.224 required by: world[ca-certificates]



[builder 2/7] RUN apk add --no-cache gcc musl-dev:
0.222 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.24/main/aarch64/APKINDEX.tar.gz: Connection refused
0.222 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.24/community/aarch64/APKINDEX.tar.gz: Connection refused
0.222 ERROR: unable to select packages:
0.222 gcc (no such package):
0.222 required by: world[gcc]
0.222 musl-dev (no such package):
0.222 required by: world[musl-dev]


Dockerfile:15

13 | FROM alpine:3.19
14 |
15 | >>> RUN apk add --no-cache ca-certificates
16 |
17 | COPY --from=builder /JoyCodeProxy /usr/local/bin/JoyCodeProxy

ERROR: failed to build: failed to solve: process "/bin/sh -c apk add --no-cache ca-certificates" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions