-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (31 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM renewdoit/docker-alpine-java:jdk8
MAINTAINER renewdoit
ENV LEIN_ROOT true
ENV BOOT_AS_ROOT yes
ENV BOOT_EMIT_TARGET no
ENV BOOT_VERSION 2.8.2
ENV BOOT_JVM_OPTIONS "-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -XX:-OmitStackTraceInFastThrow"
ENV CLJ_VERSION 1.10.3.1087
RUN \
apk add --no-cache py-pip && pip install docker-compose==1.23.2
RUN \
apk add --no-cache --update git curl openssh-client
RUN \
cd /usr/local/bin; \
curl -fsSLo lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein; \
chmod a+x lein; \
lein;
RUN \
curl -O https://download.clojure.org/install/linux-install-${CLJ_VERSION}.sh; \
chmod +x linux-install-${CLJ_VERSION}.sh; \
./linux-install-${CLJ_VERSION}.sh; \
clojure;
RUN \
cd /usr/local/bin; \
curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh; \
chmod a+x boot; \
boot web -s doesnt/exist repl -e '(System/exit 0)';
COPY profile.boot /root/.boot
COPY entry-point.sh /
COPY .ssh /root/.ssh
ENTRYPOINT ["/entry-point.sh"]