mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-01-17 14:18:17 +01:00
12baf03ef5
They were needed before because they changed example config.php so make it workable. Now we don't have it and running sed against main file just removes a lot of code and forces data path for directory
27 lines
653 B
Docker
27 lines
653 B
Docker
# how to build?
|
|
# docker login
|
|
## .....input your docker id and password
|
|
#docker build . -t tinyfilemanager/tinyfilemanager:master
|
|
#docker push tinyfilemanager/tinyfilemanager:master
|
|
|
|
# how to use?
|
|
# docker run -d -v /absolute/path:/var/www/html/data -p 80:80 --restart=always --name tinyfilemanager tinyfilemanager/tinyfilemanager:master
|
|
|
|
FROM php:7.4-cli-alpine
|
|
|
|
# if run in China
|
|
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
|
|
RUN apk add \
|
|
libzip-dev \
|
|
oniguruma-dev
|
|
|
|
RUN docker-php-ext-install \
|
|
zip
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
COPY tinyfilemanager.php index.php
|
|
|
|
CMD ["sh", "-c", "php -S 0.0.0.0:80"]
|