Skip to content

Unable to Build Docker image #116

@corasaniti

Description

@corasaniti

after cloning repo and run this commad

docker build -t librespeed-cli:latest .

I get this error
Thanks

docker build -t librespeed-cli:latest .
[+] Building 1.0s (11/12)                                                                                                                      docker:default
 => [internal] load build definition from Dockerfile                                                                                                     0.0s
 => => transferring dockerfile: 409B                                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/alpine:3.17                                                                                           0.5s
 => [internal] load metadata for docker.io/library/golang:1.23.0-alpine                                                                                  0.4s
 => [internal] load .dockerignore                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                          0.0s
 => [builder 1/5] FROM docker.io/library/golang:1.23.0-alpine@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4                    0.0s
 => CACHED [stage-1 1/2] FROM docker.io/library/alpine:3.17@sha256:8fc3dacfb6d69da8d44e42390de777e48577085db99aa4e4af35f483eb08b989                      0.0s
 => [internal] load build context                                                                                                                        0.0s
 => => transferring context: 2.83kB                                                                                                                      0.0s
 => CACHED [builder 2/5] RUN apk add --no-cache bash upx git                                                                                             0.0s
 => CACHED [builder 3/5] WORKDIR /usr/src/librespeed-cli                                                                                                 0.0s
 => CACHED [builder 4/5] COPY . .                                                                                                                        0.0s
 => ERROR [builder 5/5] RUN ./build.sh                                                                                                                   0.4s
------
 > [builder 5/5] RUN ./build.sh:
0.279 go: go.mod requires go >= 1.24.0 (running go 1.23.0; GOTOOLCHAIN=local)
------
Dockerfile:12
--------------------
  10 |
  11 |     # Build librespeed-cli
  12 | >>> RUN ./build.sh
  13 |
  14 |     FROM alpine:3.17
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c ./build.sh" 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