docker-hub-description-updater/Dockerfile

19 lines
498 B
Docker
Raw Normal View History

ARG BASE_IMAGE
ARG BUILD_IMAGE
ARG EXECUTABLE_TARGET
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" ]