restructure config folders etc

This commit is contained in:
sparklyballs 2016-08-07 01:14:09 +01:00
parent 98174433e7
commit 7cbba40f69
3 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,7 @@ FROM lsiobase/alpine.nginx
MAINTAINER chbmb
# set package version
ENV COPS_VER="1.0.0"
# install runtime packages
RUN \
@ -21,5 +22,3 @@ COPY root/ /
# ports and volumes
VOLUME /config /books
EXPOSE 80 443

View File

@ -4,12 +4,17 @@
if [ ! -e "/config/www/books/index.php" ]; then
curl -o \
/tmp/cops.tar.gz -L \
https://github.com/seblucas/cops/archive/1.0.0.tar.gz
"https://github.com/seblucas/cops/archive/${COPS_VER}.tar.gz"
mkdir -p \
/config/www/books
tar xf /tmp/cops.tar.gz -C \
/config/www/books --strip-components=1
fi
# copy config
[[ ! -e /config/www/books/config-local.php ]] && \
cp /defaults/config-local.php /config/www/books/config-local.php
# permissions
chown -R abc:abc /config/www
chown -R abc:abc \
/config/www