Skip to content

Commit

Permalink
temurin runner
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-6 committed Dec 1, 2024
1 parent 3a86c8c commit b5b80f5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,19 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0"

# Run stage
FROM openjdk:21-slim
RUN mkdir -p /app/data && mkdir -p /var/log/reposilite
FROM eclipse-temurin:21-jre-noble AS run
RUN mkdir -p /app/data && mkdir -p /var/log/reposilite

VOLUME /app/data

RUN <<EOF
mkdir -p /app/data
mkdir -p /var/log/reposilite
EOF

WORKDIR /app
COPY --chmod=755 entrypoint.sh entrypoint.sh

COPY --from=build /home/reposilite-build/reposilite-backend/build/libs/reposilite-3*.jar reposilite.jar
COPY --from=build /home/reposilite-build/entrypoint.sh entrypoint.sh
RUN chmod +x /app/entrypoint.sh
RUN apt-get update && apt-get -y install util-linux curl
HEALTHCHECK --interval=30s --timeout=30s --start-period=15s \
--retries=3 CMD [ "sh", "-c", "URL=$(cat /app/data/.local/reposilite.address); echo -n \"curl $URL... \"; \
(\
Expand Down

0 comments on commit b5b80f5

Please sign in to comment.