mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-08 22:31:06 +00:00
ci: Fix typo in Dockerfile (#406)
This commit is contained in:
parent
57b3d768fb
commit
690300239b
@ -53,17 +53,16 @@ ENV JAVA_HOME /home/nonroot/java
|
|||||||
ENV PATH $JAVA_HOME/bin:$PATH
|
ENV PATH $JAVA_HOME/bin:$PATH
|
||||||
ENV JAVA_URL https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
|
ENV JAVA_URL https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
|
||||||
|
|
||||||
RUN mkdir -p "$JAVA_HOME"; \
|
RUN mkdir -p "$JAVA_HOME"
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
curl -fL -o $JAVA_HOME/openjdk.tgz "$JAVA_URL"; \
|
curl -fL -o $JAVA_HOME/openjdk.tgz "$JAVA_URL"; \
|
||||||
tar --extract \
|
tar --extract \
|
||||||
--file $JAVA_HOME/openjdk.tgz \
|
--file $JAVA_HOME/openjdk.tgz \
|
||||||
--directory "$JAVA_HOME" \
|
--directory "$JAVA_HOME" \
|
||||||
--strip-components 1 \
|
--strip-components 1 \
|
||||||
--no-same-owner \
|
--no-same-owner
|
||||||
; \
|
|
||||||
RUN java -version; \
|
RUN java -version && javac -version
|
||||||
javac -version
|
|
||||||
|
|
||||||
# Create blank project
|
# Create blank project
|
||||||
RUN USER=nonroot cargo new --bin /src/starship
|
RUN USER=nonroot cargo new --bin /src/starship
|
||||||
|
Loading…
Reference in New Issue
Block a user