mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Add dockerfile
This commit is contained in:
parent
5ee1e422a1
commit
d0786323fd
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/syncv3
|
||||||
|
.github
|
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
FROM docker.io/golang:1.17-alpine AS base
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY . /build
|
||||||
|
RUN apk --update --no-cache add bash build-base
|
||||||
|
RUN mkdir -p bin
|
||||||
|
RUN go build -trimpath -o bin/ ./cmd/syncv3
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=base /build/bin/* /usr/bin/
|
||||||
|
COPY client /usr/bin/client
|
||||||
|
|
||||||
|
ENV SYNCV3_BINDADDR="0.0.0.0:8008"
|
||||||
|
|
||||||
|
EXPOSE 8008
|
||||||
|
|
||||||
|
WORKDIR /usr/bin
|
||||||
|
RUN ls -l client
|
||||||
|
ENTRYPOINT /usr/bin/syncv3 -server "${SYNCV3_SERVER}" -db "${SYNCV3_DB}" -port "${SYNCV3_BINDADDR}"
|
Loading…
x
Reference in New Issue
Block a user