forked from hashobject/perun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (32 loc) · 1.15 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
36
37
38
39
40
41
42
FROM debian:wheezy
MAINTAINER Dave Yarwood <dave@adzerk.com>
ENV DEBIAN_FRONTEND noninteractive
# Oracle Java 8
RUN apt-get update \
&& apt-get install -y curl wget openssl ca-certificates \
&& cd /tmp \
&& wget -qO jdk8.tar.gz \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz \
&& tar xzf jdk8.tar.gz -C /opt \
&& mv /opt/jdk* /opt/java \
&& rm /tmp/jdk8.tar.gz \
&& update-alternatives --install /usr/bin/java java /opt/java/bin/java 100 \
&& update-alternatives --install /usr/bin/javac javac /opt/java/bin/javac 100 \
&& wget -O /usr/bin/boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh \
&& chmod +x /usr/bin/boot
ENV JAVA_HOME /opt/java
# Boot
ENV BOOT_HOME /.boot
ENV BOOT_AS_ROOT yes
ENV BOOT_LOCAL_REPO /m2
ENV BOOT_JVM_OPTIONS=-Xmx2g
# download & install deps, cache REPL and web deps
RUN /usr/bin/boot web -s doesnt/exist repl -e '(System/exit 0)' && rm -rf target
ADD . /perun/
WORKDIR /perun/
RUN boot build
EXPOSE 3000
WORKDIR /perun/examples/blog
RUN boot build
CMD boot dev