From a35749aba49cb3e0b6ba6fd76a0a86c9ef39d033 Mon Sep 17 00:00:00 2001 From: Ben Radey Date: Wed, 22 Nov 2023 00:43:57 -0500 Subject: [PATCH] Adding gocryptfs builder and updating to Fedora 39 --- f38-server/Containerfile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/f38-server/Containerfile b/f38-server/Containerfile index 9d51ea4..a70c6cb 100644 --- a/f38-server/Containerfile +++ b/f38-server/Containerfile @@ -1,7 +1,21 @@ -FROM ghcr.io/cgwalters/fedora-silverblue:38 +# ====== Stage 1: Builder image ====== +FROM fedora:latest AS builder + +RUN dnf update -y && dnf install -y git golang + +RUN git clone https://github.com/rfjakob/gocryptfs.git + +WORKDIR /gocryptfs + +RUN ./build-without-openssl.bash + +# ====== Stage 2: Server image ====== +FROM quay.io/fedora/fedora-silverblue:39 + +COPY --from=builder /gocryptfs/gocryptfs /usr/bin/gocryptfs # Install ZFS repository -RUN rpm-ostree install https://zfsonlinux.org/fedora/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm && \ +RUN rpm-ostree install https://github.com/zfsonlinux/zfsonlinux.github.com/raw/master/fedora/zfs-release-2-4$(rpm --eval "%{dist}").noarch.rpm && \ # cleanup and verification stage rm -vrf /var /*.rpm && \ ostree container commit