~emersion/soju-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH soju 0/1] Add Containerfile for container images

Details
Message ID
<170664346769.29694.3093958474112537141-0@git.sr.ht>
DKIM signature
missing
Download raw message
A fairly straightforward Containerfile for building an image with either
podman or Docker, this disables CGO so we can use the scratch image
(removing dynamic links).

Gabriel Simmer (1):
  Add Containerfile

 Containerfile | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 Containerfile

-- 
2.38.5

[PATCH soju 1/1] Add Containerfile

Details
Message ID
<170664346769.29694.3093958474112537141-1@git.sr.ht>
In-Reply-To
<170664346769.29694.3093958474112537141-0@git.sr.ht> (view parent)
DKIM signature
missing
Download raw message
Patch: +19 -0
From: Gabriel Simmer <g@gmem.ca>

---
 Containerfile | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 Containerfile

diff --git a/Containerfile b/Containerfile
new file mode 100644
index 0000000..79726a1
--- /dev/null
+++ b/Containerfile
@@ -0,0 +1,19 @@
FROM golang:1.21.6-bookworm as build

ENV CGO_ENABLED=0 \
	GOOS=linux \
	GOFLAGS="-tags=moderncsqlite"

WORKDIR /build

COPY . /build

RUN  make soju

FROM scratch
COPY --from=build /build/soju /app/soju
COPY --from=build /build/sojuctl /app/sojuctl
COPY --from=build /build/sojudb /app/sojudb
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

CMD ["/app/soju"]
-- 
2.38.5

[soju/patches/.build.yml] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CYSANCMFWTX0.3VLB8207UKCXG@fra01>
In-Reply-To
<170664346769.29694.3093958474112537141-1@git.sr.ht> (view parent)
DKIM signature
missing
Download raw message
soju/patches/.build.yml: SUCCESS in 1m15s

[Add Containerfile for container images][0] from [~gmem][1]

[0]: https://lists.sr.ht/~emersion/soju-dev/patches/49050
[1]: sourcehut@gmem.ca

✓ #1140474 SUCCESS soju/patches/.build.yml https://builds.sr.ht/~emersion/job/1140474
Reply to thread Export thread (mbox)