misc: minor improvements on data storage on production images

This commit is contained in:
Andrey Antukh 2019-07-05 15:24:11 +02:00
parent e786a85bbd
commit 1fce679402
3 changed files with 9 additions and 4 deletions

View file

@ -10,6 +10,7 @@ RUN set -ex; \
apt-get update -yq && \
apt-get install -yq \
curl \
rsync \
git \
imagemagick \
webp
@ -25,9 +26,8 @@ COPY ./dist /srv/uxbox
RUN set -ex; \
chmod 755 /entrypoint.sh; \
mkdir -p /srv/uxbox/resources/media
mkdir /srv/uxbox/data;
VOLUME /srv/uxbox/resources/public
WORKDIR /srv/uxbox/
EXPOSE 6060

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -e
echo "Setting up UXBOX Backend..."
echo "Synchronize static data..."
rsync -avr --delete ./resources/public/static/ ./data/static/
echo "Setting up UXBOX Backend..."
exec "$@"