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:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user