matrix-sliding-sync/Containerfile
Sebastian Hugentobler aefc35a9d2
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Has been cancelled
initial commit
2024-05-30 18:03:54 +02:00

22 lines
388 B
Docker

FROM docker.io/golang:1.22-alpine3.20 as builder
ENV CGO_ENABLED=0
RUN apk --no-cache add \
git
WORKDIR /build
ENV VERSION=v0.99.18
RUN git clone https://github.com/matrix-org/sliding-sync.git
WORKDIR /build/sliding-sync
RUN git checkout $VERSION
RUN go build ./cmd/syncv3
FROM scratch
COPY --from=builder /build/sliding-sync/syncv3 /syncv3
ENTRYPOINT [ "/syncv3" ]
EXPOSE 8008