Skip to content

Instantly share code, notes, and snippets.

@aviflax
Created February 14, 2018 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviflax/5d5e417d6bbdd8a1f1c8cbc9cbc348fc to your computer and use it in GitHub Desktop.
Save aviflax/5d5e417d6bbdd8a1f1c8cbc9cbc348fc to your computer and use it in GitHub Desktop.
FROM openjdk:8-alpine
LABEL maintainer="Avi Flax <avi.flax@fundingcircle.com>"
WORKDIR /tmp
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk add --update --no-cache bash curl rlwrap@testing
RUN curl -O https://download.clojure.org/install/linux-install-1.9.0.315.sh
RUN chmod +x linux-install-1.9.0.315.sh
RUN ./linux-install-1.9.0.315.sh
WORKDIR /code
COPY . ./
# Trigger clj to download Clojure itself and all deps from deps.edn
RUN echo '(println "Clojure is in the house!")' | clj -
# The sleep is a workaround found here: https://github.com/sflyr/docker-sqlplus/pull/2
ENTRYPOINT sleep 1; clj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment