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