mirror of
https://github.com/linuxserver/docker-cops.git
synced 2026-02-19 18:51:05 +08:00
Merge pull request #2 from sparklyballs/feel-my-rewrite-oh-yeah
restructure config folders etc
This commit is contained in:
commit
a9cbc62f6f
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user