Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka authored Aug 2, 2023
1 parent 679d37d commit 34add03
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 34add03

Please sign in to comment.