optimised Dockerfile in a alpine image #18
Loading…
Reference in a new issue
No description provided.
Delete branch "fredix/tricot:main"
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?
Hi !
I just build a docker image with this optimised Dockerfile (built on alpine). You can test here : https://hub.docker.com/r/fredix/tricot
BTW I switched from caddy to tricot in my Nomad/Consul self-hosted infra, and for the moment it works well.
Thanks for Tricot ! (and Garage too ;)
Thanks! The Dockerfile currently in the repo is indeed outdated, as these days we've been using nix to build docker images for tricot (using the repo's
flake.nix
). But I think it's a good idea to also have a working Dockerfile, in any case.@ -24,0 +20,4 @@
target/x86_64-unknown-linux-musl/release/tricot.compressed
FROM alpine
RUN apk add -U --no-cache ca-certificates libgcc
Is
libgcc
needed since this is a static musl build?exactly ! And I had to build a static binary because of openssl lib (rust failed to link to ssl lib, I don't know why, I'm not a rust developer :/ )
Anyway if you give me a link to your public docker image I could use it instead of mine ?
Un article sur Tricot https://fredix.xyz/2024/12/tricot/ (in french sorry)
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.