Skip to content

Instantly share code, notes, and snippets.

Last active January 6, 2022 12:17
What would you like to do?
FROM openjdk:11-jdk-slim
RUN apt-get update && apt-get install -y git curl unzip procps time
RUN git clone /project && \
cd /project && git reset --hard 429f88335e8d233ffc527bff009721a72611e5e7
WORKDIR /project
# warm-up dependencies, gradle caches, compilation, etc
RUN time ./gradlew assemble
RUN curl -fsSL -o /ide.tar.gz && \
mkdir /ide && \
tar xfz /ide.tar.gz --strip-components=1 -C /ide && \
rm /ide.tar.gz
# Install any additional plugins required for opening the project
# RUN /ide/bin/ installPlugins /project org.intellij.scala
# warm-up IDE indexes, caches etc
# RUN time /ide/bin/ warm-up /project
# Enable JCEF (embedded Chromium) for e.g. markdown preview
CMD /ide/bin/ run /project --listenOn --port 5990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment