This commit is contained in:
2026-06-15 22:46:12 +08:00
commit f6508eccdb
38 changed files with 3133 additions and 0 deletions

19
server/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM golang:1.26-alpine AS build
WORKDIR /src
COPY server/go.mod server/go.sum* ./
RUN go mod download
COPY server/ ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/synctv-server ./cmd/synctv-server
FROM alpine:3.22
WORKDIR /app
COPY --from=build /out/synctv-server /app/synctv-server
COPY config/server.json /app/config/server.json
ENV SYNCTV_CONFIG=/app/config/server.json
EXPOSE 8080
CMD ["/app/synctv-server"]