This repository was archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 1.27 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
FROM corbinu/docker-nginx-php
MAINTAINER Corbin Uselton corbin@openswimsoftware.com
ENV PMA_SECRET blowfish_secret
ENV PMA_USERNAME pma
ENV PMA_PASSWORD password
ENV PMA_NO_PASSWORD 0
ENV PMA_AUTH_TYPE cookie
ENV MYSQL_USERNAME mysql
ENV MYSQL_PASSWORD password
RUN apt-get update
RUN apt-get install -y mysql-client
ENV PHPMYADMIN_VERSION 4.5.0.2
ENV MAX_UPLOAD "50M"
RUN wget https://files.phpmyadmin.net/phpMyAdmin/${PHPMYADMIN_VERSION}/phpMyAdmin-${PHPMYADMIN_VERSION}-english.tar.bz2 \
&& tar -xvjf /phpMyAdmin-${PHPMYADMIN_VERSION}-english.tar.bz2 -C / \
&& rm /phpMyAdmin-${PHPMYADMIN_VERSION}-english.tar.bz2 \
&& rm -r /www \
&& mv /phpMyAdmin-${PHPMYADMIN_VERSION}-english /www
ADD sources/config.inc.php /
ADD sources/create_user.sql /
ADD sources/phpmyadmin-start /usr/local/bin/
ADD sources/phpmyadmin-firstrun /usr/local/bin/
RUN chmod +x /usr/local/bin/phpmyadmin-start
RUN chmod +x /usr/local/bin/phpmyadmin-firstrun
RUN sed -i "s/http {/http {\n client_max_body_size $MAX_UPLOAD;/" /etc/nginx/nginx.conf
RUN sed -i "s/upload_max_filesize = 2M/upload_max_filesize = $MAX_UPLOAD/" /etc/php5/fpm/php.ini
RUN sed -i "s/post_max_size = 8M/post_max_size = $MAX_UPLOAD/" /etc/php5/fpm/php.ini
EXPOSE 80
CMD phpmyadmin-start