Created
February 14, 2018 19:16
-
-
Save aviflax/5d5e417d6bbdd8a1f1c8cbc9cbc348fc to your computer and use it in GitHub Desktop.
This file contains 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-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