Use watch mode for transcoder

This commit is contained in:
Zoe Roux
2025-05-19 14:10:35 +02:00
parent 4828fa08cf
commit af566150f5
4 changed files with 18 additions and 6 deletions
+3 -3
View File
@@ -22,8 +22,6 @@ RUN set -eux; \
ENV SSL_CERT_DIR=/etc/ssl/certs
RUN update-ca-certificates
RUN go install github.com/bokwoon95/wgo@latest
# read target arch from buildx or default to amd64 if using legacy builder.
ARG TARGETARCH
ENV TARGETARCH=${TARGETARCH:-amd64}
@@ -51,5 +49,7 @@ ENV NVIDIA_DRIVER_CAPABILITIES="all"
COPY go.mod go.sum ./
RUN go mod download
COPY . .
EXPOSE 7666
CMD ["wgo", "run", "-race", "."]
CMD ["go", "run", "-race", "."]