Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created January 18, 2015 12:38
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alandipert/0a996c5634660acd8b3c to your computer and use it in GitHub Desktop.
Save alandipert/0a996c5634660acd8b3c to your computer and use it in GitHub Desktop.
FROM debian:wheezy
ENV DEBIAN_FRONTEND noninteractive
# Oracle Java 8
RUN apt-get update \
&& apt-get install -y 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/8u25-b17/jdk-8u25-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
ENV JAVA_HOME /opt/java
# Boot
RUN wget -O /usr/bin/boot \
https://github.com/boot-clj/boot/releases/download/2.0.0-rc6/boot.sh \
&& chmod +x /usr/bin/boot
ENV BOOT_AS_ROOT yes
# Application
RUN mkdir /app
WORKDIR /app
ADD . /app
VOLUME ["/app"]
# required by AWS Elastic Beanstalk
EXPOSE 3000
CMD ["/usr/bin/boot", "s3maven", "config", "run", "wait"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment