mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
More test binary changes
This commit is contained in:
parent
336cf1869a
commit
8fe6384c79
@ -8,7 +8,7 @@ RUN --mount=target=. \
|
||||
--mount=type=cache,target=/root/.cache/go-build \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
GIT_COMMIT=$(git rev-list -1 HEAD) && \
|
||||
go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -trimpath -o /out/ "./cmd/$BINARYNAME"
|
||||
go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -trimpath -o /out/syncv3 "./cmd/$BINARYNAME"
|
||||
|
||||
FROM alpine:3.17
|
||||
|
||||
@ -19,4 +19,7 @@ ENV SYNCV3_BINDADDR="0.0.0.0:8008"
|
||||
EXPOSE 8008
|
||||
|
||||
WORKDIR /usr/bin
|
||||
# It would be nice if the binary we exec was called $BINARYNAME here, but build args
|
||||
# aren't expanded in ENTRYPOINT directives. Instead, we always call the output binary
|
||||
# "syncv3". (See https://github.com/moby/moby/issues/18492)
|
||||
ENTRYPOINT /usr/bin/syncv3
|
||||
|
Loading…
x
Reference in New Issue
Block a user