go-cross-build/Dockerfile
2024-09-03 01:15:23 +03:00

12 lines
277 B
Docker

# Debian GNU/Linux 10 (1.13.10-buster)
FROM golang:latest
# 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" ]