#285·ferry

docker-compose up报错

Author: qq516249940Created Oct 18, 2022Updated Apr 26, 2024
bash
Status: Downloaded newer image for golang:1.18
 ---> 5fedf7be08ce
Step 13/35 : WORKDIR /opt/workflow/ferry
 ---> Running in 6a3add738221
Removing intermediate container 6a3add738221
 ---> d51818354ae0
Step 14/35 : COPY . .
 ---> 516cb9e41194
Step 15/35 : ARG GOPROXY="https://goproxy.cn"
 ---> Running in 161b3539bcd6
Removing intermediate container 161b3539bcd6
 ---> 6b7eed60c40f
Step 16/35 : RUN go mod download
 ---> Running in 41c726f9f962
Removing intermediate container 41c726f9f962
 ---> 652b3fee0383
Step 17/35 : RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .
 ---> Running in 99c7d8c2e9b5
# ferry/apis/process
apis/process/task.go:201:23: undefined: Strings
ERROR: Service 'ferry' failed to build: The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .' returned a non-zero code: 2