go-cross-build/Dockerfile

15 lines
308 B
Docker
Raw Permalink Normal View History

2020-04-12 00:59:35 +05:30
# Debian GNU/Linux 10 (1.13.10-buster)
2024-09-03 01:15:23 +03:00
FROM golang:latest
2020-04-12 00:59:35 +05:30
2024-09-23 21:55:45 -04:00
# add zip
RUN apt install zip
2020-04-12 00:59:35 +05:30
# 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 14:16:41 -07:00
ENTRYPOINT [ "go", "run", "/usr/bin/entrypoint.go" ]