29 lines
763 B
Docker
29 lines
763 B
Docker
|
FROM webdevops/php-nginx:alpine
|
||
|
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
||
|
|
||
|
# set up initial vars
|
||
|
ENV \
|
||
|
ELFINDER_RELEASE="2.1.49" \
|
||
|
ELFINDER_USER="admin" \
|
||
|
ELFINDER_PASS="admin"
|
||
|
|
||
|
RUN set -x \
|
||
|
&& curl -L -O "https://github.com/Studio-42/elFinder/archive/${ELFINDER_RELEASE}.tar.gz" \
|
||
|
&& tar -xvf ${ELFINDER_RELEASE}.tar.gz --strip 1 -C /app \
|
||
|
&& rm -rf ${ELFINDER_RELEASE}.tar.gz \
|
||
|
&& rm -rf /app/*.html \
|
||
|
&& rm -ff /app/*.js \
|
||
|
&& chown -R ${APPLICATION_UID}:${APPLICATION_GID} /app \
|
||
|
&& rm -rf /app/files \
|
||
|
&& ln -s /data /app/files \
|
||
|
&& docker-run-bootstrap \
|
||
|
&& docker-image-cleanup
|
||
|
|
||
|
COPY ./custom/app/ /app/
|
||
|
|
||
|
RUN set -x \
|
||
|
&& chown -R ${APPLICATION_UID}:${APPLICATION_GID} /app
|
||
|
|
||
|
VOLUME /data
|
||
|
|