Skip to content

Instantly share code, notes, and snippets.

@micha
Created December 5, 2014 20:00
Show Gist options
  • Select an option

  • Save micha/313cd75e64e88a3a0a59 to your computer and use it in GitHub Desktop.

Select an option

Save micha/313cd75e64e88a3a0a59 to your computer and use it in GitHub Desktop.
FROM ubuntu:12.04
RUN apt-get update && apt-get install -y -f --no-install-recommends openjdk-7-jdk wget
RUN update-alternatives --config java
RUN wget -O /usr/bin/boot \
https://github.com/tailrecursion/boot/releases/download/v2-r1/boot.sh \
&& chmod +x /usr/bin/boot
ENV BOOT_LOCAL_REPO /m2
RUN mkdir /m2
ENV BOOT_CHANNEL DEV
RUN boot -u
# app
RUN mkdir /app
WORKDIR /app
ADD . /app
RUN boot serve --fetch
# required by AWS Elastic Beanstalk
EXPOSE 3000
CMD ["/usr/bin/boot", "serve"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment