-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (58 loc) · 2.1 KB
/
Dockerfile
File metadata and controls
68 lines (58 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -----------------------------------------------------------------------------
# docker-filemanager
#
# Builds a basic docker image that can run a FileManager
# (https://github.com/simogeo/Filemanager).
#
# Authors: LM, BS
# Updated: February 12rd, 2016
# Require: Docker 1.9.1 (http://www.docker.io/)
# Done on Windobe !
# -----------------------------------------------------------------------------
FROM debian:jessie
MAINTAINER LM, Kelvin Chen <kelvin@kelvinchen.org>
# Install all dependencies that are used in multiple images.
RUN echo "deb http://httpredir.debian.org/debian jessie non-free" \
>> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
vim \
ca-certificates \
python \
python-dev \
curl \
git \
nginx \
unzip \
unrar \
supervisor \
bzip2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
php5-fpm \
php5-cli \
php5-gd \
&& apt-get install --no-install-recommends -y apache2-utils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Download and install Filemanager
# Issue with github - easily fixeable
# ADD "https://github.com/simogeo/Filemanager/archive/master.zip" ./
ADD https://codeload.github.com/simogeo/Filemanager/zip/master /Filemanager-master.zip
RUN unzip Filemanager-master.zip -d /opt/; rm /Filemanager-master.zip
# configure supervisor
ADD supervisord.conf /etc/supervisor/conf.d/
# Load in all of our config files.
COPY nginx.conf /etc/nginx/
#Given config file (filemanager.config.json) does not exist !
COPY filemanager.config.js "/opt/Filemanager-master/scripts/filemanager.config.json"
# Increase the upload file size limit
RUN sed -i 's/upload_max_filesize/;upload_max_filesize/g' /etc/php5/cli/php.ini
# Unlock memory limit to allow large zip upload
RUN sed -i 's/memory_limit = 128M/memory_limit = -1/g' /etc/php5/fpm/php.ini
# /start runs it.
EXPOSE 80
VOLUME /downloads
CMD ["supervisord"]