go-cross-build/Dockerfile
2024-09-23 23:28:41 -04:00

13 lines
293 B
Docker

# Alpine 3.20
FROM golang:1.23.1-alpine3.20
RUN apk install --no-cache zip
# 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"]