Skip to content

Commit

Permalink
Added some labels to solarthing-server/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Mar 21, 2023
1 parent 650ef44 commit 4c3efd8
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions docker/solarthing-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,23 @@ RUN java -Djarmode=layertools -jar application.jar extract


FROM eclipse-temurin:19-jre-jammy
LABEL org.opencontainers.image.source=https://github.com/wildmountainfarms/solarthing
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
LABEL org.opencontainers.image.title="SolarThing Server"
LABEL org.opencontainers.image.description="SolarThing Server running in a docker container"
LABEL org.opencontainers.image.source="https://github.com/wildmountainfarms/solarthing"
LABEL org.opencontainers.image.ref.name=solarthing-server
LABEL org.opencontainers.image.vendor=wildmountainfarms
LABEL org.opencontainers.image.version=SNAPSHOT
LABEL org.opencontainers.image.documentation="https://solarthing.readthedocs.io/en/latest/"
LABEL org.opencontainers.image.url="https://solarthing.readthedocs.io/en/latest/"
LABEL org.opencontainers.image.authors="retrodaredevil"
LABEL org.opencontainers.image.base.name="docker.io/eclipse-temurin:19-jre-jammy"

RUN ["mkdir", "/app"]
WORKDIR "/app"
COPY --from=builder dependencies/ ./
COPY --from=builder snapshot-dependencies/ ./
COPY --from=builder spring-boot-loader/ ./
COPY --from=builder application/ ./
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]
RUN ["mkdir", "classes"]
COPY --from=builder dependencies/ classes/
COPY --from=builder snapshot-dependencies/ classes/
COPY --from=builder spring-boot-loader/ classes/
COPY --from=builder application/ classes/
ENTRYPOINT ["java", "-cp", "classes", "org.springframework.boot.loader.JarLauncher"]

0 comments on commit 4c3efd8

Please sign in to comment.