getidev/Dockerfile

23 lines
429 B
Docker
Raw Normal View History

2021-06-10 11:08:56 +00:00
ARG BASE_IMAGE
ARG BUILD_IMAGE
# BUILD
# =====================================================================
FROM ${BUILD_IMAGE} AS build
ARG VERSION
COPY ./ /workspace
RUN cd /workspace && \
VERSION=${VERSION} \
make all
# TARGET
# =====================================================================
FROM ${BASE_IMAGE}
COPY --from=build /workspace/getidev /usr/bin/getidev
ENTRYPOINT [ "/usr/bin/getidev" ]