Skip to content

Instantly share code, notes, and snippets.

@jarlrasm
Last active April 10, 2016 21:39
Show Gist options
  • Save jarlrasm/15e47e2352a44ce74d010a8855e8bf6e to your computer and use it in GitHub Desktop.
Save jarlrasm/15e47e2352a44ce74d010a8855e8bf6e to your computer and use it in GitHub Desktop.
Dockerfile for clojurescript running on nginx
FROM nginx
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y curl default-jre && rm -rf /var/lib/apt/lists/*
RUN curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > /usr/bin/lein && chmod 755 /usr/bin/lein
ENV LEIN_ROOT=1
RUN lein
COPY . /app
RUN cd app && lein cljsbuild once release && cp -r resources/public/. /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment