Files
KnockOutWhist/Dockerfile
Janis 05b6ebb2a8
Some checks failed
Build and Test (KnockOutWhist) TeamCity build failed
DOCKER WORKS
2025-01-23 17:46:18 +01:00

36 lines
738 B
Docker

FROM sbtscala/scala-sbt:eclipse-temurin-jammy-22_36_1.10.0_3.4.2
WORKDIR /knockout
ENV DEBIAN_FRONTEND=noninterface
RUN apt-get update && apt-get install -y curl gnupg2 x11-apps
RUN apt-get update && apt-get install -y \
libxext6 \
libxrender1 \
libxtst6 \
libxi6 \
libxrandr2 \
libgtk-3-0 \
xorg
RUN curl -sL https://dlcdn.apache.org/sbt/debian/sbt-1.9.4.deb -o sbt.deb
RUN dpkg -i sbt.deb || apt-get install -f -y
ENV DEBIAN_FRONTEND=dialog
RUN sbt update
ENV DISPLAY=:99
ENV SBT_OPTS="-Xms512M -Xmx1536M -Xss2M -XX:MaxMetaspaceSize=512M"
ENV _JAVA_OPTIONS="-Djava.security.policy=applet.policy -Dprism.order=sw"
VOLUME /tmp/.X11-unix
COPY . /knockout
RUN sbt compile
CMD ["sh", "-c", "sbt run"]