From 34add03cff942337d851fc2af8f3e9c2ba39dedb Mon Sep 17 00:00:00 2001 From: Yvan Sraka Date: Wed, 2 Aug 2023 22:47:17 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc32b70d..b80c01f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,14 +8,13 @@ FROM ubuntu:rolling WORKDIR /workspaces # Set ARGs as ENVs so they're available in RUN -ENV PLATFORM=$platform -ENV TARGET_PLATFORM=$target_platform -ENV COMPILER_NIX_NAME=$compiler_nix_name -ENV MINIMAL=$minimal -ENV IOG=$iog +ENV PLATFORM_=$platform +ENV TARGET_PLATFORM_=$target_platform +ENV COMPILER_NIX_NAME_=$compiler_nix_name +ENV MINIMAL_=$minimal +ENV IOG_=$iog RUN SUFFIX='' \ - && if [ "$MINIMAL" = "true" ]; then SUFFIX="$SUFFIX-minimal"; fi \ - && if [ "$IOG" = "true" ]; then SUFFIX="$SUFFIX-iog"; fi \ - && echo "foobar" \ - && echo "input-output-hk/devx $PLATFORM.$COMPILER_NIX_NAME$TARGET_PLATFORM$SUFFIX-env" + && if [ "${MINIMAL_}" = "true" ]; then SUFFIX_="${SUFFIX}-minimal"; fi \ + && if [ "${IOG_}" = "true" ]; then SUFFIX="${SUFFIX}-iog"; fi \ + && echo "input-output-hk/devx ${PLATFORM_}.${COMPILER_NIX_NAME_}${TARGET_PLATFORM_}${SUFFIX}-env"