mirror of
https://github.com/linuxserver/docker-cops.git
synced 2026-02-19 18:51:05 +08:00
restructure config folders etc
This commit is contained in:
parent
98174433e7
commit
7cbba40f69
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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