Skip to content

Commit

Permalink
Update Docker packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 13, 2019
1 parent 9aba8b7 commit e12066c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM openjdk:8u222-jre-slim-buster

ARG STAINLESS_VERSION

WORKDIR /app

RUN apt-get update && apt-get install -y wget unzip libgomp1

ARG STAINLESS_VERSION

RUN echo "Fetching https://github.com/epfl-lara/stainless/releases/download/v$STAINLESS_VERSION/stainless-scalac-standalone-$STAINLESS_VERSION-linux.zip"
RUN wget --quiet https://github.com/epfl-lara/stainless/releases/download/v$STAINLESS_VERSION/stainless-scalac-standalone-$STAINLESS_VERSION-linux.zip
RUN echo "Unzipping stainless-scalac-standalone-$STAINLESS_VERSION-linux.zip"
RUN unzip stainless-scalac-standalone-$STAINLESS_VERSION-linux.zip && rm -f stainless-scalac-standalone-$STAINLESS_VERSION-linux.zip

ENTRYPOINT ["/app/stainless"]
Expand Down
2 changes: 1 addition & 1 deletion bin/docker-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Press ENTER to continue, or Ctrl-C to abort..."
read tmp

echo "Building Docker image 'stainless:$STAINLESS_VERSION'..."
docker build --build-arg "STAINLESS_VERSION=$STAINLESS_VERSION" -t "stainless:$STAINLESS_VERSION"
docker build --build-arg "STAINLESS_VERSION=$STAINLESS_VERSION" -t "stainless:$STAINLESS_VERSION" .

echo "Tagging Docker image 'stainless:latest'..."
docker tag stainless:$STAINLESS_VERSION stainless:latest
Expand Down

0 comments on commit e12066c

Please sign in to comment.