Closed skanehira closed 5 years ago
My Dockerfile is wrong.
CGO_ENABLED
must be 1.
When I enable CGO_ENABLED
building is success
# build docui
FROM golang:1.12.8 AS build-docui
ENV GOPATH /go
ENV GOOS linux
ENV GOARCH amd64
ENV CGO_ENABLED 0
ENV GO111MODULE on
ENV TERM xterm-256color
COPY . ./src/github.com/skanehira/docui
WORKDIR /go/src/github.com/skanehira/docui
RUN go build
# copy artifact from the build stage
FROM busybox:1.30
COPY --from=build-docui /go/src/github.com/skanehira/docui/docui /usr/local/bin/docui
ENTRYPOINT ["docui"]
Hi! Thank you for developing this.
Attempting to build a tool using keybd_event inside a docker container failed. I build on the Mac OS and build success. I don't know the cause of the error.
Does you know anything?