cert is required for HTTPS connection with Discord

This commit is contained in:
Erikas 2024-07-05 00:32:54 +03:00
parent 90dcb361df
commit 7e740d7623

View File

@ -10,5 +10,6 @@ ARG version
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH GOARM=${TARGETVARIANT#v} go build -a -ldflags "-w -s -X main.version=$version -extldflags '-static'" -o fm ./cmd/flightlesssomething/main.go RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH GOARM=${TARGETVARIANT#v} go build -a -ldflags "-w -s -X main.version=$version -extldflags '-static'" -o fm ./cmd/flightlesssomething/main.go
FROM scratch FROM scratch
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/
COPY --from=builder /app/fm /fm COPY --from=builder /app/fm /fm
ENTRYPOINT ["/fm"] ENTRYPOINT ["/fm"]