dockerfile build and run

This commit is contained in:
2018-10-05 15:12:13 +02:00
parent 4c033ac86c
commit 7fce1b2cde
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
FROM dyne/clojure
LABEL maintainer="Denis Roio <jaromil@dyne.org>" \
homepage="https://github.com/dyne/agiladmin"
# ENV VERSION=AUTO_STRICT
EXPOSE 3000
WORKDIR /app
COPY . /app
RUN mkdir -p /usr/share/man/man1/ \
&& apt-get update \
&& apt-get install -y -q --allow-downgrades --no-install-recommends \
mongodb \
&& apt-get clean \
&& lein deps
CMD /etc/init.d/mongodb start \
&& lein ring server-headless