docker-hub-description-updater/Dockerfile

23 lines
568 B
Docker
Raw Permalink Normal View History

2020-01-26 14:52:36 +00:00
# ARGs
# ==================================
ARG BASE_IMAGE
ARG BUILD_IMAGE
ARG EXECUTABLE_TARGET
2020-01-26 14:52:36 +00:00
ARG GOPROXY
ARG GOPRIVATE
ARG VERSION
# BUILD
# ==============================================================================
FROM ${BUILD_IMAGE} AS build-env
2019-09-16 19:36:27 +00:00
ADD ./ /workspace
RUN make clean ${EXECUTABLE_TARGET} GOPROXY=${GOPROXY}
2019-09-16 19:36:27 +00:00
# TARGET
# ==============================================================================
FROM ${BASE_IMAGE}
COPY --from=build-env /workspace/${EXECUTABLE_TARGET} /usr/bin/dhdu
RUN chmod +x /usr/bin/dhdu
ENTRYPOINT [ "/usr/bin/dhdu" ]