Unable to build an image from Dockerfile

What is the problem you are having with rclone?

I am trying to build a custom docker image. I am using the Dockerfile from https://github.com/rclone/rclone/blob/a752563842b3a603c7d73b00e71c6ff1fd120382/Dockerfile

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0

  • os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
  • os/kernel: 10.0.19045.3448 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

N/A

The command you were trying to run (eg rclone copy /tmp remote:tmp)

docker build . 

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Paste config here

A log from the command that you were trying to run with the -vv flag

[+] Building 4.5s (10/15)                                                                                                                                            docker:default
 => [internal] load build definition from Dockerfile                                                                                                                           0.0s
 => => transferring dockerfile: 1.26kB                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                              0.0s
 => => transferring context: 2B                                                                                                                                                0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                                                               3.5s
 => [internal] load metadata for docker.io/library/golang:latest                                                                                                               3.0s
 => [internal] load build context                                                                                                                                              0.1s
 => => transferring context: 14.62kB                                                                                                                                           0.1s 
 => CACHED [builder 1/5] FROM docker.io/library/golang@sha256:19600fdcae402165dcdab18cb9649540bde6be7274dedb5d205b2f84029fe909                                                 0.0s 
 => CANCELED [stage-1 1/5] FROM docker.io/library/alpine:latest@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978                                        0.9s 
 => => resolve docker.io/library/alpine:latest@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978                                                         0.1s 
 => => sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978 1.64kB / 1.64kB                                                                                 0.0s
 => => sha256:48d9183eb12a05c99bcc0bf44a003607b8e941e1d4f41f9ad12bdcc4b5672f86 528B / 528B                                                                                     0.0s 
 => => sha256:8ca4688f4f356596b5ae539337c9941abc78eda10021d35cbc52659c74d9b443 1.47kB / 1.47kB                                                                                 0.0s 
 => => sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa 1.05MB / 3.40MB                                                                                 0.9s 
 => [builder 3/5] WORKDIR /go/src/github.com/rclone/rclone/                                                                                                                    0.1s 
 => ERROR [builder 4/5] RUN   CGO_ENABLED=0   make                                                                                                                             0.5s 
------
 > [builder 4/5] RUN   CGO_ENABLED=0   make:
0.481 make: *** No targets specified and no makefile found.  Stop.
------
Dockerfile:6
--------------------
   5 |
   6 | >>> RUN \
   7 | >>>   CGO_ENABLED=0 \
   8 | >>>   make
   9 |     RUN ./rclone version
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=0   make" did not complete successfully: exit code: 2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.