Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +27 -0
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# how to build?
|
2 |
+
# docker login
|
3 |
+
## .....input your docker id and password
|
4 |
+
#docker build . -t tinyfilemanager/tinyfilemanager:master
|
5 |
+
#docker push tinyfilemanager/tinyfilemanager:master
|
6 |
+
|
7 |
+
# how to use?
|
8 |
+
# docker run -d -v /absolute/path:/var/www/html/data -p 80:80 --restart=always --name tinyfilemanager tinyfilemanager/tinyfilemanager:master
|
9 |
+
|
10 |
+
FROM php:7.4-cli-alpine
|
11 |
+
|
12 |
+
# if run in China
|
13 |
+
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
14 |
+
|
15 |
+
RUN apk add --no-cache \
|
16 |
+
libzip-dev \
|
17 |
+
oniguruma-dev
|
18 |
+
|
19 |
+
RUN docker-php-ext-install \
|
20 |
+
zip
|
21 |
+
|
22 |
+
WORKDIR /var/www/html
|
23 |
+
|
24 |
+
COPY tinyfilemanager.php index.php
|
25 |
+
|
26 |
+
CMD ["sh", "-c", "php -S 0.0.0.0:7860"]
|
27 |
+
expose 7860
|