-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM php:alpine3.11
LABEL maintainer minostauros <6764739+minostauros@users.noreply.github.com>
ENV TINYFILEMANAGER_VERSION 2.4.3
RUN apk --update add git less openssh && \
mkdir /app && \
cd /app && \
git clone --branch ${TINYFILEMANAGER_VERSION} \
https://github.com/prasathmani/tinyfilemanager.git && \
sed -i.bak -e "s/\$root\_path = \$\_SERVER\['DOCUMENT_ROOT'\];/\$root_path = \'\/data\';/g" \
/app/tinyfilemanager/config.php && \
apk del git less openssh && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/*
RUN apk --update add zip libzip-dev && \
docker-php-ext-install zip fileinfo
WORKDIR /app/tinyfilemanager
ENTRYPOINT ["php"]
CMD ["-S", "0.0.0.0:80", "tinyfilemanager.php"]