Files
scannerbot/Dockerfile.server
T
2026-05-25 23:06:29 +00:00

16 lines
581 B
Docker

################################################################################
# App builder stage
FROM golang:1.26.3-trixie@sha256:0f6b034c99663ea8957e7dae99124e37374cbe7fcb5b5646f19b185f8f976279 AS app-builder
COPY server/ /opt/server
WORKDIR /opt/server
RUN go get && CGO_ENABLED=0 go build -o out/scannerbot-server
################################################################################
# Final squashed image
FROM scratch AS final
# Copy yt-dlp-bot app binary
COPY --from=app-builder /opt/server/out/scannerbot-server /bin/
ENTRYPOINT ["/bin/scannerbot-server"]