2021-09-03 13:43:23 +08:00
|
|
|
# how to build?
|
|
|
|
# docker login
|
|
|
|
## .....input your docker id and password
|
2021-09-05 11:17:26 +08:00
|
|
|
#docker build . -t tinyfilemanager/tinyfilemanager:master
|
|
|
|
#docker push tinyfilemanager/tinyfilemanager:master
|
2021-09-03 13:43:23 +08:00
|
|
|
|
|
|
|
# how to use?
|
2021-09-05 11:17:26 +08:00
|
|
|
# docker run -d -v /absolute/path:/var/www/html/data -p 80:80 --restart=always --name tinyfilemanager tinyfilemanager/tinyfilemanager:master
|
2021-09-03 13:43:23 +08:00
|
|
|
|
|
|
|
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 \
|
2022-08-30 22:53:19 -07:00
|
|
|
zip
|
2021-09-03 13:43:23 +08:00
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
COPY tinyfilemanager.php index.php
|
|
|
|
|
|
|
|
CMD ["sh", "-c", "php -S 0.0.0.0:80"]
|