-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 670 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine:3.20 AS builder
RUN apk add --no-cache curl git
ARG VERSION=0.25.31
RUN curl -O "https://futhark-lang.org/releases/futhark-${VERSION}-linux-x86_64.tar.xz" && \
tar -xJf "futhark-${VERSION}-linux-x86_64.tar.xz" && \
cp "futhark-${VERSION}-linux-x86_64/bin/futhark" /usr/local/bin/
WORKDIR /opt/futhark-packages
RUN futhark pkg add github.com/diku-dk/sorts && \
futhark pkg sync
FROM alpine:3.20 AS runtime
RUN apk add --no-cache jq gcc musl-dev
COPY --from=builder /usr/local/bin/futhark /usr/local/bin/futhark
WORKDIR /opt/test-runner
COPY --from=builder /opt/futhark-packages/lib lib
COPY . .
ENTRYPOINT ["/opt/test-runner/bin/run.sh"]