Skip to content

Instantly share code, notes, and snippets.

@mrmcc3
Created October 23, 2017 03:12
Show Gist options
  • Save mrmcc3/e221945bc01b7a28e1c4cbfa556c8244 to your computer and use it in GitHub Desktop.
Save mrmcc3/e221945bc01b7a28e1c4cbfa556c8244 to your computer and use it in GitHub Desktop.
Clojure Docker
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