2
0
forked from drew/smtprelay

add explicit binary locations

- Container image seemed to be build without the binary in the right place to run.
This commit is contained in:
2025-11-26 14:34:43 -07:00
parent 55f941c7a1
commit bc4a31817e

View File

@@ -8,7 +8,7 @@ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
RUN go build -buildvcs=false . RUN go build -buildvcs=false -o /smtprelay
# Stage 2: Package # Stage 2: Package
FROM scratch FROM scratch
@@ -16,7 +16,8 @@ LABEL org.opencontainers.image.title="smtprelay"
LABEL org.opencontainers.image.authors="drew@brds.ca" LABEL org.opencontainers.image.authors="drew@brds.ca"
LABEL org.opencontainers.image.description="Image containing the smtprelay program." LABEL org.opencontainers.image.description="Image containing the smtprelay program."
COPY --from=builder /project/smtprelay / WORKDIR /
COPY --from=builder /smtprelay /smtprelay
# Command to run # Command to run
ENTRYPOINT ["/smtprelay"] ENTRYPOINT ["/smtprelay"]