Skip to content

Commit

Permalink
chore: Update Dockerfile to replace fat JAR with restheart-core.jar a…
Browse files Browse the repository at this point in the history
…nd its dependencies
  • Loading branch information
mkjsix committed Aug 6, 2024
1 parent 0a26228 commit 3066ed9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ LABEL maintainer="SoftInstigate <[email protected]>"
RUN apt-get update && apt-get install -y && apt-get clean

WORKDIR /opt/restheart
COPY target/restheart.jar .
COPY target/restheart-core.jar ./restheart.jar
COPY target/lib/* lib/
COPY target/plugins/* plugins/
COPY target/plugins/lib/* plugins/lib/

ENV RHO='/mclient/connection-string->"mongodb://host.docker.internal";/http-listener/host->"0.0.0.0"'
ENTRYPOINT [ "java", "-Dfile.encoding=UTF-8", "-server", "-jar", "restheart.jar" ]
Expand Down
4 changes: 3 additions & 1 deletion core/Dockerfile.distroless
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ FROM gcr.io/distroless/java21-debian12:latest
LABEL maintainer="SoftInstigate <[email protected]>"

WORKDIR /opt/restheart
COPY target/restheart.jar .
COPY target/restheart-core.jar ./restheart.jar
COPY target/lib/* lib/
COPY target/plugins/* plugins/
COPY target/plugins/lib/* plugins/lib/

ENV RHO='/mclient/connection-string->"mongodb://host.docker.internal";/http-listener/host->"0.0.0.0"'
ENTRYPOINT [ "java", "-Dfile.encoding=UTF-8", "-server", "-jar", "restheart.jar" ]
Expand Down
4 changes: 3 additions & 1 deletion core/Dockerfile.graalvm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ LABEL maintainer="SoftInstigate <[email protected]>"

WORKDIR /opt/restheart
COPY bin/entrypoint-graalvm.sh entrypoint.sh
COPY target/restheart.jar .
COPY target/restheart-core.jar ./restheart.jar
COPY target/lib/* lib/
COPY target/plugins/* plugins/
COPY target/plugins/lib/* plugins/lib/

SHELL ["/bin/bash", "-i", "-c"]

Expand Down

0 comments on commit 3066ed9

Please sign in to comment.