Community maintained Docker config for the spindle server

fixup: port

keea.dog d15a888e 276d5b91

verified
Changed files
+3 -3
+3 -3
Dockerfile
···
RUN go build -o /usr/bin/spindle -ldflags '-s -w -extldflags "-static"' ./cmd/spindle
FROM alpine:edge
-
EXPOSE 5555
-
EXPOSE 22
LABEL org.opencontainers.image.title='spindle'
LABEL org.opencontainers.image.description='CI runner for tangled'
···
COPY --from=builder /usr/bin/spindle /usr/bin
RUN mkdir /app && chown -R spindle:spindle /app
-
ARG 6555
HEALTHCHECK --interval=60s --timeout=30s --start-period=5s --retries=3 \
cmd curl -f http://localhost:$PORT || exit 1
···
RUN go build -o /usr/bin/spindle -ldflags '-s -w -extldflags "-static"' ./cmd/spindle
FROM alpine:edge
+
+
ARG PORT=6555
+
EXPOSE $PORT
LABEL org.opencontainers.image.title='spindle'
LABEL org.opencontainers.image.description='CI runner for tangled'
···
COPY --from=builder /usr/bin/spindle /usr/bin
RUN mkdir /app && chown -R spindle:spindle /app
HEALTHCHECK --interval=60s --timeout=30s --start-period=5s --retries=3 \
cmd curl -f http://localhost:$PORT || exit 1