Skip to content

Commit

Permalink
chore: Update Dockerfile to optimize installation process and improve…
Browse files Browse the repository at this point in the history
… maintainability
  • Loading branch information
mkjsix committed Aug 6, 2024
1 parent 97e4f1e commit 20e15da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ FROM eclipse-temurin:21-jre

LABEL maintainer="SoftInstigate <info@softinstigate.com>"

RUN apt-get update && apt-get install -y && apt-get clean
RUN apt-get update && \
apt-get --no-install-recommends install -y && \
apt-get clean

WORKDIR /opt/restheart
COPY target/restheart-core.jar ./restheart.jar
COPY target/lib/* lib/
COPY target/plugins/* plugins/
COPY target/plugins/lib/* plugins/lib/
COPY target/lib/*.jar lib/
COPY target/plugins/*.jar plugins/
COPY target/plugins/lib/*.jar 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

0 comments on commit 20e15da

Please sign in to comment.