refactor: reorganize with some changes the docker images and manage.sh

This commit is contained in:
Andrey Antukh 2019-06-03 16:53:31 +02:00
parent 3b648f5aa5
commit a2c41cf9a7
20 changed files with 321 additions and 198 deletions

View file

@ -0,0 +1,34 @@
FROM openjdk:8-jre
LABEL maintainer="Monogramm Maintainers <opensource at monogramm dot io>"
ENV LANG=en_US.UTF-8 \
LC_ALL=C.UTF-8
RUN set -ex; \
wget https://download.clojure.org/install/linux-install-1.10.0.442.sh; \
chmod +x linux-install-1.10.0.442.sh; \
./linux-install-1.10.0.442.sh; \
rm -rf linux-install-1.10.0.442.sh
RUN set -ex; \
apt-get update -yq && \
apt-get install -yq \
git \
imagemagick \
webp
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"]

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
echo "Setting up UXBOX Backend..."
exec "$@"