Create Dockerfile #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "segator/feature/createDockerFile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I created the lcvpn docker
to build & run
@segator I have 2 questions :)
This is q common case when using alpine in go, i saw in a lot of docker go apps, in fact lcvpn doesnt work if dont set, why docker? Because is very easy to setup, if -net host then tun is created on the host so any app can use it
@segator
FROM scratch:) it will work and resulting container will be many times smaller :) and I believe that it will work without any problems-net hostis also there, so users who don't use docker on daily basis will not reports bugs as nothing works :)There is also a method for building an ultra-slim container for running Go applications, it involves starting first with a full build and then it rips out everything except what Go needs.
https://blog.codeship.com/building-minimal-docker-containers-for-go-applications/
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.