File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ FROM debian:11
22
33WORKDIR /
44
5+ ARG VERSION=nightly
6+
57ENV PORT=8080
68RUN apt update && apt install -y libtinfo-dev libgmp-dev zlib1g-dev python pip wget
79RUN python3 -m pip install --upgrade pip
810RUN python3 -m pip install --no-cache-dir waitress
9- RUN wget https://futhark-lang.org/releases/futhark-nightly -linux-x86_64.tar.xz
10- RUN tar xvf futhark-nightly -linux-x86_64.tar.xz
11- RUN cd futhark-nightly -linux-x86_64 && make install
11+ RUN wget https://futhark-lang.org/releases/futhark-$VERSION -linux-x86_64.tar.xz
12+ RUN tar xvf futhark-$VERSION -linux-x86_64.tar.xz
13+ RUN cd futhark-$VERSION -linux-x86_64 && make install
1214COPY . .
1315RUN python3 -m pip install --no-cache-dir -r requirements.txt
1416EXPOSE ${PORT}
Original file line number Diff line number Diff line change 11DEFAULTPORT=8080
22PORT=$1
3+ VERSION=0.25.1
34if [ -z " $PORT " ]; then
45 PORT=$DEFAULTPORT
56fi
67
78echo " PORT: $PORT "
8- sudo docker build -t online-futhark-repl repl
9+ sudo docker build --build-arg VERSION= ${VERSION} - t online-futhark-repl repl
910sudo docker run -p $PORT :$PORT online-futhark-repl --host=0.0.0.0 --port=${PORT} --url-scheme=https --threads=4 views:app
You can’t perform that action at this time.
0 commit comments