Skip to content

Commit 9297767

Browse files
BenjaminBenjamin
Benjamin
authored and
Benjamin
committed
Dockerfile for Alpine-based Julia 1.5 added
1 parent 6a716f3 commit 9297767

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

1.5-rc/alpine/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM alpine:latest
2+
3+
RUN apk update && \
4+
apk upgrade --no-cache && \
5+
apk add --no-cache wget tar
6+
7+
ENV JULIA_PATH /usr/local/julia
8+
ENV PATH $JULIA_PATH/bin:$PATH
9+
10+
# https://julialang.org/downloads/
11+
ENV JULIA_VERSION 1.5.0-rc1
12+
ENV JULIA_URL https://julialang-s3.julialang.org/bin/musl/x64/1.5/julia-${JULIA_VERSION}-musl-x86_64.tar.gz
13+
ENV JULIA_GPG 43e3a30133aee14657cc8984cc51e8f308ac1978e4c5986f4c976b8e8747194f
14+
15+
RUN mkdir ${JULIA_PATH} && \
16+
wget -q ${JULIA_URL} && \
17+
echo "${JULIA_GPG} julia-${JULIA_VERSION}-musl-x86_64.tar.gz" | sha256sum -c - && \
18+
tar -xzf "julia-${JULIA_VERSION}-musl-x86_64.tar.gz" -C ${JULIA_PATH} --strip-components=1 && \
19+
rm "julia-${JULIA_VERSION}-musl-x86_64.tar.gz" && \
20+
julia --version # smoke test
21+
22+
23+
CMD ["julia"]

0 commit comments

Comments
 (0)