go-cross-build/Dockerfile

13 lines
293 B
Docker

# Alpine 3.20
FROM golang:1.23.1-alpine3.20
RUN apk add --no-cache zip git
# copy entrypoint file
COPY entrypoint.go /usr/bin/entrypoint.go
# change mode of the entrypoint file
RUN chmod +x /usr/bin/entrypoint.go
# set entrypoint command
ENTRYPOINT [ "go", "run", "/usr/bin/entrypoint.go"]