2019-06-03 09:53:31 -05:00
|
|
|
FROM openjdk:8-jre
|
|
|
|
|
|
|
|
LABEL maintainer="Monogramm Maintainers <opensource at monogramm dot io>"
|
|
|
|
|
2019-06-11 11:18:33 -05:00
|
|
|
ENV CLOJURE_VERSION=1.10.0.442 \
|
|
|
|
LANG=en_US.UTF-8 \
|
2019-06-03 09:53:31 -05:00
|
|
|
LC_ALL=C.UTF-8
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
apt-get update -yq && \
|
|
|
|
apt-get install -yq \
|
2019-06-11 13:58:21 -05:00
|
|
|
curl \
|
2019-06-03 09:53:31 -05:00
|
|
|
git \
|
|
|
|
imagemagick \
|
|
|
|
webp
|
|
|
|
|
2019-06-11 13:58:21 -05:00
|
|
|
RUN set -ex; \
|
|
|
|
wget "https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh"; \
|
|
|
|
chmod +x "linux-install-$CLOJURE_VERSION.sh"; \
|
|
|
|
"./linux-install-$CLOJURE_VERSION.sh"; \
|
|
|
|
rm -rf "linux-install-$CLOJURE_VERSION.sh"
|
|
|
|
|
2019-06-03 09:53:31 -05:00
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
|
|
COPY ./dist /srv/uxbox
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
chmod 755 /entrypoint.sh; \
|
|
|
|
mkdir -p /srv/uxbox/resources/media
|
|
|
|
|
|
|
|
VOLUME /srv/uxbox/resources/public
|
|
|
|
WORKDIR /srv/uxbox/
|
|
|
|
|
|
|
|
EXPOSE 6060
|
|
|
|
|
|
|
|
ENTRYPOINT ["sh", "/entrypoint.sh"]
|
|
|
|
CMD ["clojure", "-m", "uxbox.main"]
|