go-cross-build/Dockerfile

12 lines
282 B
Docker
Raw Normal View History

2020-04-11 15:29:35 -04:00
# Debian GNU/Linux 10 (1.13.10-buster)
2021-04-11 17:16:41 -04:00
FROM golang:1.16-buster
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
2021-04-11 17:16:41 -04:00
ENTRYPOINT [ "go", "run", "/usr/bin/entrypoint.go" ]