Merge pull request #2 from sparklyballs/feel-my-rewrite-oh-yeah

restructure config folders etc
This commit is contained in:
Neil 2016-08-07 08:29:45 +01:00 committed by GitHub
commit a9cbc62f6f
3 changed files with 8 additions and 6 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 \
@ -11,8 +12,6 @@ RUN \
php5-gd \
php5-intl \
php5-pdo_sqlite \
php5-sqlite3 \
sqlite \
tar
# add local files
@ -21,5 +20,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