1

I wrote a program in Go and I want to launch it in a Docker container, but my company does not have a golang Docker image and refuses to download one.

I only have an image with Java (CentOS). How can I achieve this? Is it possible to run some kind of binary thing which does not need Go environment?

Thanks in advance.

hawarden_
  • 1,904
  • 5
  • 28
  • 48

1 Answers1

3

You don't need docker or a go SDK environment to run go executables. Simply cross compile stackoverflow Q: 12168873 the go program on the pc you wrote it and copy the binary to the computer with CentOS, given that computer has a supported hardware.

Community
  • 1
  • 1
ABri
  • 610
  • 6
  • 16