Last active
April 10, 2016 21:39
-
-
Save jarlrasm/15e47e2352a44ce74d010a8855e8bf6e to your computer and use it in GitHub Desktop.
Dockerfile for clojurescript running on nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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