diff --git a/src/container/Dockerfile.linux b/src/container/Dockerfile.linux index 35680a8146..0790df8681 100644 --- a/src/container/Dockerfile.linux +++ b/src/container/Dockerfile.linux @@ -13,12 +13,13 @@ RUN dotnet publish ./JNetCLI/JNetCLI.csproj --framework net6.0 -c Release -o out FROM mcr.microsoft.com/dotnet/runtime:6.0-jammy # Add JRE -RUN apt update -RUN apt install -y openjdk-11-jre-headless +RUN apt-get update && apt-get install -y --no-install-recommends openjdk-11-jre-headless && rm -rf /var/lib/apt/lists/* -ADD ./jars /app/jars +#ADD ./jars /app/jars ENV JCOBRIDGE_JVMPath=/usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so +ENV JCOBRIDGE_LicensePath= + WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "MASES.JNetCLI.dll"]