go-cross-build/Dockerfile

13 lines
289 B
Docker
Raw Normal View History

2024-09-23 22:30:52 -04:00
# Alpine 3.20
FROM golang:1.23.1-alpine3.20
2024-09-23 22:48:16 -04:00
RUN apk add --no-cache zip
2024-09-23 21:55:45 -04:00
2020-04-11 15:29:35 -04:00
# 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
2024-09-23 23:28:41 -04:00
ENTRYPOINT [ "go", "run", "/usr/bin/entrypoint.go"]