Created
October 23, 2017 03:12
-
-
Save mrmcc3/e221945bc01b7a28e1c4cbfa556c8244 to your computer and use it in GitHub Desktop.
Clojure Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jre-alpine | |
# install the official clojure cli tooling | |
WORKDIR /tmp/clojure-scripts | |
RUN apk add --update curl bash ruby && \ | |
curl -O https://download.clojure.org/install/brew/clojure-scripts.tar.gz && tar xzf clojure-scripts.tar.gz && \ | |
mkdir -p /root/clojure-scripts && ./install.sh /root/clojure-scripts && \ | |
apk del curl ruby && rm -rf /var/cache/apk/* && rm -rf /tmp/clojure-scripts | |
ENV PATH=$PATH:/root/clojure-scripts/bin | |
# bring in application files and set clojure cli as the entrypoint | |
WORKDIR /mnt/app | |
COPY src src | |
COPY resources resources | |
COPY deps.edn . | |
ENTRYPOINT ["clojure"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment