matrix: use goolm over libolm, ci: user smaller docker image base
removes one dependency. jfa-go-build-docker has been updated to reflect this, and in general with a newer debian version and properly included goreleaser, and a build for amd64. Dockerfiles now use a "distroless"-style container as their base. Was gonna use chainguard/glibc-dynamic, but it running as a different user meant it wouldn't read/write from your /data mount without manual intervention.
This commit is contained in:
+4
-6
@@ -1,12 +1,10 @@
|
||||
FROM golang:bookworm AS final
|
||||
FROM gcr.io/distroless/base:latest AS final
|
||||
ARG TARGETARCH
|
||||
|
||||
COPY ./dist/notray-e2ee_linux_${TARGETARCH}* /opt/jfa-go
|
||||
COPY ./build/data /opt/jfa-go/data
|
||||
|
||||
RUN apt-get update -y && apt-get install libolm-dev -y
|
||||
COPY ./dist/notray-e2ee_linux_${TARGETARCH}* /jfa-go
|
||||
COPY ./build/data /jfa-go/data
|
||||
|
||||
EXPOSE 8056
|
||||
EXPOSE 8057
|
||||
|
||||
CMD [ "/opt/jfa-go/jfa-go", "-data", "/data" ]
|
||||
CMD [ "/jfa-go/jfa-go", "-data", "/data" ]
|
||||
|
||||
Reference in New Issue
Block a user