From 0756641e36a8fb7075fc8376ccfa3ad7e5c7071a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Thu, 12 Mar 2026 17:25:17 +0100 Subject: [PATCH] build(docker): copy shell scripts in the run stage (#73) fix #56 --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2ebddb..5ba0759 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ ### Compile stage FROM golang:1.26.1-bookworm AS build-env -ADD . /dockerbuild WORKDIR /dockerbuild +ADD . . RUN GIT_VERSION=$(git describe --tags --long --always || echo "dev-local") && \ go mod tidy && \ @@ -18,8 +18,11 @@ WORKDIR / RUN mkdir -p data/cocoon COPY --from=build-env /dockerbuild/cocoon / +COPY ./init-keys.sh / +COPY ./create-initial-invite.sh / + CMD ["/cocoon", "run"] LABEL org.opencontainers.image.source=https://github.com/haileyok/cocoon LABEL org.opencontainers.image.description="Cocoon ATProto PDS" -LABEL org.opencontainers.image.licenses=MIT \ No newline at end of file +LABEL org.opencontainers.image.licenses=MIT -- 2.51.2