mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:09 -04:00
builder has the certs, so use that
This commit is contained in:
@@ -28,8 +28,6 @@ WORKDIR $GOPATH/src/${IMPORT_PATH}
|
||||
RUN dep ensure --vendor-only \
|
||||
&& CGO_ENABLED=0 make ${BINARY}.${ARCH}.${OS}
|
||||
|
||||
FROM alpine:latest as sslcerts
|
||||
|
||||
FROM scratch
|
||||
ARG ARCH
|
||||
ARG OS
|
||||
@@ -62,7 +60,7 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}" \
|
||||
|
||||
COPY --from=builder /go/src/${IMPORT_PATH}/${BINARY}.${ARCH}.${OS} /image
|
||||
COPY --from=builder /go/src/${IMPORT_PATH}/examples/${CONFIG_FILE}.example /etc/${BINARY}/${CONFIG_FILE}
|
||||
COPY --from=sslcerts /etc/ssl /etc/ssl
|
||||
COPY --from=builder /etc/ssl /etc/ssl
|
||||
|
||||
VOLUME [ "/etc/${BINARY}" ]
|
||||
ENTRYPOINT [ "/image" ]
|
||||
|
||||
Reference in New Issue
Block a user