This commit is contained in:
Hymmel 2025-10-10 15:37:44 +02:00
parent 0063da3239
commit 7337188b23

View file

@ -1,5 +1,20 @@
# Stage 1: Build the application using SBT # Stage 1: Build the application using SBT
FROM hseeberger/sbt:8u222-2.11.12-0.13.18 as builder # We use a stable OpenJDK 8 base and install the specific SBT version needed,
# as public SBT images for older versions can be unreliable.
FROM openjdk:8-jdk-slim as builder
# SBT version from project/build.properties
ARG SBT_VERSION=0.13.11
ENV SBT_HOME=/usr/local/sbt
ENV PATH=${SBT_HOME}/bin:${PATH}
# Install required tools and the specific version of SBT
RUN apt-get update && \
apt-get install -y curl && \
curl -L -o sbt.tgz https://github.com/sbt/sbt/releases/download/v${SBT_VERSION}/sbt-${SBT_VERSION}.tgz && \
tar -xzf sbt.tgz -C /usr/local && \
rm sbt.tgz && \
apt-get purge -y --auto-remove curl
WORKDIR /app WORKDIR /app