Community maintained Docker config for the spindle server
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Dockerfile: s/knot/spindle/, remove unused deps

keea.dog 52205719 dc82b2ae

verified
+11 -12
+11 -12
Dockerfile
··· 1 1 FROM golang:1.24-alpine AS builder 2 - ENV KNOT_REPO_SCAN_PATH=/home/git/repositories 3 2 ENV CGO_ENABLED=1 4 3 5 4 ARG TAG='v1.10.0-alpha' ··· 7 6 WORKDIR /app 8 7 RUN apk add git gcc musl-dev 9 8 RUN git clone -b ${TAG} https://tangled.org/@tangled.org/core . 10 - RUN go build -o /usr/bin/knot -ldflags '-s -w -extldflags "-static"' ./cmd/knot 9 + RUN go build -o /usr/bin/spindle -ldflags '-s -w -extldflags "-static"' ./cmd/spindle 11 10 12 11 FROM alpine:edge 13 12 EXPOSE 5555 14 13 EXPOSE 22 15 14 16 - LABEL org.opencontainers.image.title='knot' 17 - LABEL org.opencontainers.image.description='data server for tangled' 18 - LABEL org.opencontainers.image.source='https://tangled.org/@tangled.org/knot-docker' 15 + LABEL org.opencontainers.image.title='spindle' 16 + LABEL org.opencontainers.image.description='CI runner for tangled' 17 + LABEL org.opencontainers.image.source='https://tangled.org/@keea.dog/spindle-docker' 19 18 LABEL org.opencontainers.image.url='https://tangled.org' 20 19 LABEL org.opencontainers.image.vendor='tangled.org' 21 20 LABEL org.opencontainers.image.licenses='MIT' ··· 26 25 COPY rootfs . 27 26 RUN chmod 755 /etc 28 27 RUN chmod -R 755 /etc/s6-overlay 29 - RUN apk add shadow s6-overlay execline openssl openssh git curl bash 30 - RUN groupadd -g $GID -f git 31 - RUN useradd -u $UID -g $GID -d /home/git git 32 - RUN openssl rand -hex 16 | passwd --stdin git 33 - RUN mkdir -p /home/git/repositories && chown -R git:git /home/git 34 - COPY --from=builder /usr/bin/knot /usr/bin 35 - RUN mkdir /app && chown -R git:git /app 28 + RUN apk add shadow s6-overlay execline openssl curl 29 + RUN groupadd -g $GID -f spindle 30 + RUN useradd -u $UID -g $GID -d /home/spindle spindle 31 + RUN openssl rand -hex 16 | passwd --stdin spindle 32 + RUN mkdir -p /home/spindle/repositories && chown -R spindle:spindle /home/spindle 33 + COPY --from=builder /usr/bin/spindle /usr/bin 34 + RUN mkdir /app && chown -R spindle:spindle /app 36 35 37 36 HEALTHCHECK --interval=60s --timeout=30s --start-period=5s --retries=3 \ 38 37 cmd curl -f http://localhost:5555 || exit 1