Skip to content

Commit

Permalink
Update to jammy-chiseled runtime image (#389)
Browse files Browse the repository at this point in the history
* Update to jammy-chiseled runtime image

* Docker image shrink
  • Loading branch information
masesdevelopers authored May 14, 2024
1 parent 09d8264 commit 4e9f35a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/container/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 4e9f35a

Please sign in to comment.