Skip to content

Commit

Permalink
Merge pull request #138 from AvihaiZiv/main
Browse files Browse the repository at this point in the history
Doplarr Arm64 supported docker image
  • Loading branch information
kiranshila authored Apr 16, 2024
2 parents aa98aec + 1bc7183 commit e0a92da
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
FROM adoptopenjdk/openjdk16:alpine-jre
FROM clojure:tools-deps-1.11.1.1435 as builder

WORKDIR /src

# CACHING DEPS
COPY ./deps.edn ./
RUN clojure -P
RUN clojure -T:build || true

COPY ./build/ /src/build/
COPY ./src/ /src/src/

RUN clojure -T:build uber

FROM eclipse-temurin:22_36-jre-alpine as runtime

WORKDIR /app

Expand All @@ -8,7 +22,7 @@ RUN \
tini \
tzdata

COPY . /app
COPY --from=builder /src/target/doplarr.jar ./
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["java","-jar","/app/doplarr.jar"]

Expand Down

0 comments on commit e0a92da

Please sign in to comment.