From 028569218d50a67b36cca9124e673dacf5a873b2 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 6 Jan 2020 09:40:38 -0700 Subject: Copy build output from other docker images --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 24cfa3e..2d36f5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,12 @@ RUN asdf install FROM registry.gitlab.com/xlgmokha/debian-tools/php:latest AS php-builder RUN asdf current +FROM registry.gitlab.com/xlgmokha/debian-tools/python:latest AS python-builder +RUN asdf current + +FROM registry.gitlab.com/xlgmokha/debian-tools/nodejs:latest AS nodejs-builder +RUN asdf current + FROM debian:stable-slim ENV LM_HOME=/opt/license-management ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin" @@ -99,8 +105,10 @@ RUN apt-get update -q \ WORKDIR $HOME COPY config/* ./ COPY --from=gem-builder /opt/license-management/*.gem $LM_HOME/ +COPY --from=nodejs-builder /root/.asdf/installs/nodejs $HOME/.asdf/installs/nodejs +COPY --from=php-builder /root/.asdf/installs/php $HOME/.asdf/installs/php +COPY --from=python-builder /root/.asdf/installs/python $HOME/.asdf/installs/python COPY --from=ruby-builder /root/.asdf/installs/ruby $HOME/.asdf/installs/ruby -COPY --from=php-builder /root/.asdf/installs/ruby $HOME/.asdf/installs/php RUN asdf install && asdf current COPY test /test COPY run.sh / -- cgit v1.2.3