~emersion/soju-dev

soju: Add Containerfile for container images v1 PROPOSED

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
#1140474 .build.yml success
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]: mailto:sourcehut@gmem.ca

✓ #1140474 SUCCESS soju/patches/.build.yml https://builds.sr.ht/~emersion/job/1140474
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/49050/mbox | git am -3
Learn more about email & git

[PATCH soju 1/1] Add Containerfile Export this patch

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: SUCCESS in 1m15s

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

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

✓ #1140474 SUCCESS soju/patches/.build.yml https://builds.sr.ht/~emersion/job/1140474