Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
b40edfd065 | |||
96a7d3f29b | |||
07ba37211e |
@ -1,6 +1,6 @@
|
|||||||
# Alpine 3.20
|
# Alpine 3.20
|
||||||
FROM golang:1.23.1-alpine3.20
|
FROM golang:1.23.1-alpine3.20
|
||||||
RUN apk add --no-cache zip
|
RUN apk add --no-cache zip git
|
||||||
|
|
||||||
# copy entrypoint file
|
# copy entrypoint file
|
||||||
COPY entrypoint.go /usr/bin/entrypoint.go
|
COPY entrypoint.go /usr/bin/entrypoint.go
|
||||||
@ -8,7 +8,5 @@ COPY entrypoint.go /usr/bin/entrypoint.go
|
|||||||
# change mode of the entrypoint file
|
# change mode of the entrypoint file
|
||||||
RUN chmod +x /usr/bin/entrypoint.go
|
RUN chmod +x /usr/bin/entrypoint.go
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /go-xbuild
|
|
||||||
|
|
||||||
# set entrypoint command
|
# set entrypoint command
|
||||||
ENTRYPOINT [ "/go-xbuild"]
|
ENTRYPOINT [ "go", "run", "/usr/bin/entrypoint.go"]
|
||||||
|
Loading…
Reference in New Issue
Block a user