Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Dockerfile for ubuntu - #36

Open
caruccio wants to merge 1 commit into
jpbetz:masterfrom
caruccio:patch-1
Open

Dockerfile for ubuntu#36
caruccio wants to merge 1 commit into
jpbetz:masterfrom
caruccio:patch-1

Conversation

@caruccio

@caruccio caruccio commented Feb 8, 2022

Copy link
Copy Markdown

Since original Dockerfile compiles against alpine's musl it creates a binary unusable outside the container.
This Dockerfile.ubuntu builds a binary you can copy into your host without the need to install golang at all (which is desirable in a production etcd server).

$ sudo docker build . -t auger:latest -f Dockerfile.ubuntu
$ sudo docker run --rm --entrypoint cat auger:latest /go/bin/auger > auger
$ chmod +x ./auger
$ ./auger -h

Since original `Dockerfile` compiles against alpine's musl it creates a binary unusable outside the container.
This `Dockerfile.ubuntu` builds a binary you can copy into your host without the need to install golang at all (which is desirable in a production etcd server).

```
$ sudo docker build . -t auger:latest -f Dockerfile.ubuntu
$ sudo docker run --rm --entrypoint cat auger:latest /go/bin/auger > auger
$ chmod +x ./auger
$ ./auger -h
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant