optimised Dockerfile in a alpine image #18

Open
fredix wants to merge 1 commit from fredix/tricot:main into main
First-time contributor

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 ;)

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 ;)
fredix added 1 commit 2024-12-05 00:20:15 +00:00
optimised Dockerfile in a alpine image
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ea6287ad39
Armael approved these changes 2024-12-05 12:23:31 +00:00
Armael left a comment
Owner

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.

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
Owner

Is libgcc needed since this is a static musl build?

Is `libgcc` needed since this is a static musl build?
Author
First-time contributor

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 ?

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 ?
Author
First-time contributor

Un article sur Tricot https://fredix.xyz/2024/12/tricot/ (in french sorry)

Un article sur Tricot https://fredix.xyz/2024/12/tricot/ (in french sorry)
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:fredix-main
git checkout fredix-main

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.

git checkout main
git merge --no-ff fredix-main
git checkout fredix-main
git rebase main
git checkout main
git merge --ff-only fredix-main
git checkout fredix-main
git rebase main
git checkout main
git merge --no-ff fredix-main
git checkout main
git merge --squash fredix-main
git checkout main
git merge --ff-only fredix-main
git checkout main
git merge fredix-main
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/tricot#18
No description provided.