Skip to content

Instantly share code, notes, and snippets.

@Juju-62q
Last active December 20, 2019 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juju-62q/76fccdf6bb940af8e5b766f7a9ab845e to your computer and use it in GitHub Desktop.
Save Juju-62q/76fccdf6bb940af8e5b766f7a9ab845e to your computer and use it in GitHub Desktop.
version: "3.6"
services:
scala:
build: .
tty: true
volumes:
- ./:/src
working_dir: /src
FROM oracle/graalvm-ce:19.3.0-java8
RUN yum -y update \
&& yum install -y wget curl \
&& curl https://bintray.com/sbt/rpm/rpm | tee /etc/yum.repos.d/bintray-sbt-rpm.repo \
&& yum install -y sbt \
&& wget https://downloads.lightbend.com/scala/2.12.6/scala-2.12.6.tgz \
&& tar xvzf scala-2.12.6.tgz \
&& mv scala-2.12.6 /usr/local/scala \
&& wget https://storage.googleapis.com/hey-release/hey_linux_amd64 \
&& chmod 755 hey_linux_amd64 \
&& mv hey_linux_amd64 /usr/local/bin/hey \
&& gu install native-image \
&& rm -rf scala-2.12.6 && rm scala-2.12.6.tgz \
&& rm -rf /var/cache/yum/* \
&& yum clean all
ENV PATH $PATH:/usr/local/scala/bin
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment