FROM golang:1.22-alpine AS builder RUN apk add --no-cache git bash WORKDIR /app RUN git clone https://github.com/seydx/tuya-ipc-terminal.git . RUN go mod download && go build -o tuya-ipc-terminal . FROM alpine:3.19 RUN apk add --no-cache ca-certificates tzdata WORKDIR /app COPY --from=builder /app/tuya-ipc-terminal . VOLUME ["/app/.tuya-data"] EXPOSE 8554 ENTRYPOINT ["./tuya-ipc-terminal"] CMD ["rtsp", "start", "--port", "8554"]