Skip to content

Commit

Permalink
Fix variables escape
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjsix committed Jul 25, 2024
1 parent c86a771 commit d9fbf67
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ RUN apt-get update \
&& echo "sdkman_auto_selfupdate=false" >> "${SDKMAN_DIR}/etc/config" \
&& echo "sdkman_insecure_ssl=true" >> "${SDKMAN_DIR}/etc/config" \
&& chmod +x "${SDKMAN_DIR}/bin/sdkman-init.sh"
RUN bash -c "source "${SDKMAN_DIR}/bin/sdkman-init.sh" \
RUN bash -c "source ${SDKMAN_DIR}/bin/sdkman-init.sh \
&& sdk version \
&& sdk install java "${JAVA_VERSION}" \
&& sdk install maven "${MAVEN_VERSION}" \
&& rm -rf "${SDKMAN_DIR}/archives/*" \
&& rm -rf "${SDKMAN_DIR}/tmp/*"
&& sdk install java ${JAVA_VERSION} \
&& rm -rf ${SDKMAN_DIR}/archives/* \
&& rm -rf ${SDKMAN_DIR}/tmp/*"

WORKDIR /opt/app

Expand Down

0 comments on commit d9fbf67

Please sign in to comment.