Skip to content

Commit a990a2a

Browse files
committed
dockerfile should configure JAVA_HOME
1 parent ad5b111 commit a990a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ ENV LANGUAGE=en_US.UTF-8
2121
# JDK dependency
2222
RUN curl -s "https://get.sdkman.io" | bash
2323
RUN bash -c "source /root/.sdkman/bin/sdkman-init.sh && sdk install java 25.0.1-amzn"
24+
ENV JAVA_HOME="$(sdk home java current)"
2425

2526
RUN curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
2627
tar zxf swiftly-$(uname -m).tar.gz && \
2728
./swiftly init --quiet-shell-followup --assume-yes && \
2829
. "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" && \
2930
hash -r
30-

0 commit comments

Comments
 (0)