-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
55 lines (44 loc) · 1.28 KB
/
Dockerfile
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
FROM debian:jessie
MAINTAINER Fred Bricon <[email protected]>
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
git \
make \
qt4-qmake \
qt4-default \
build-essential \
g++ \
apache2 \
libapache2-mod-php5 \
php5-gd \
php5-mcrypt \
php5-curl\
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN a2enmod php5
RUN a2enmod rewrite
CMD mkdir /var/www
WORKDIR /var/www
RUN git clone --depth 1 https://github.com/OpenJabNab/OpenJabNab.git
WORKDIR OpenJabNab/server
RUN qmake -r
RUN make
RUN cp ./openjabnab.ini-dist ./bin/openjabnab.ini
RUN sed -i -e"s/^StandAloneAuthBypass = false/StandAloneAuthBypass=true/" ./bin/openjabnab.ini
RUN sed -i -e"s/^AllowUserManageBunny=false/AllowUserManageBunny=true/" ./bin/openjabnab.ini
RUN sed -i -e"s/^AllowUserManageBunny=false/AllowUserManageBunny=true/" ./bin/openjabnab.ini
ENV APP_ROOTURL localhost
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
EXPOSE 8080 8080
EXPOSE 5222 5222
EXPOSE 80 80
ADD plugin_auth.ini ./bin/plugin_auth.ini
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
RUN chmod 777 ../http-wrapper/ojn_admin/include
COPY start.sh /usr/local/bin/
CMD ["start.sh"]