Skip to content

Commit 9b2e878

Browse files
committed
Add Dockerfile from lampepfl/dotty-ci
1 parent e96cb18 commit 9b2e878

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Diff for: .github/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM ubuntu:22.04
2+
3+
# The default locale is "POSIX" which is just ASCII.
4+
ENV LANG C.UTF-8
5+
ENV DEBIAN_FRONTEND noninteractive
6+
ENV TZ Europe/Zurich
7+
8+
# Add packages to image, set default JDK version
9+
RUN apt-get update && \
10+
apt-get upgrade -y && \
11+
# Use a PPA to get Java 17
12+
apt-get install -y software-properties-common && add-apt-repository ppa:openjdk-r/ppa && \
13+
apt-get install -y bash curl git ssh htop openjdk-8-jdk-headless openjdk-17-jdk-headless \
14+
openjdk-21-jdk-headless nano vim-tiny zile && \
15+
(curl -fsSL https://deb.nodesource.com/setup_18.x | bash -) && \
16+
apt-get install -y nodejs
17+
18+
19+
# Install sbt
20+
ENV SBT_HOME /usr/local/sbt
21+
ENV PATH ${SBT_HOME}/bin:${PATH}
22+
ENV SBT_VERSION 1.9.0
23+
RUN curl -sL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local

0 commit comments

Comments
 (0)