-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (32 loc) · 1.44 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
FROM ghcr.io/computestacks/cs-docker-php:8.2-litespeed
LABEL maintainer="ComputeStacks <hello@computestacks.com>"
LABEL org.opencontainers.image.authors="https://computestacks.com"
LABEL org.opencontainers.image.source="https://github.com/ComputeStacks/cs-docker-pma"
LABEL org.opencontainers.image.url="https://github.com/ComputeStacks/cs-docker-pma"
LABEL org.opencontainers.image.title="phpMyAdmin"
ENV PMA_VERSION 5.2.1
ENV PMA_HASH 31c95fe5c00e0f899b5d31ac6fff506cf8061f2f746e9d7084c395f47451946e
COPY init_pma.rb /usr/local/bin/
COPY 51-pma-startup.sh /etc/my_init.d/
RUN set -ex; \
\
apt-get update; \
apt-get install -y ruby rubygems bundler \
; \
gem install --no-document http oj timeout \
; \
apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
; \
wget -O /usr/src/phpmyadmin.zip https://files.phpmyadmin.net/phpMyAdmin/${PMA_VERSION}/phpMyAdmin-${PMA_VERSION}-all-languages.zip \
; \
cd /usr/src \
&& echo "$PMA_HASH /usr/src/phpmyadmin.zip" | sha256sum -c -; \
unzip phpmyadmin.zip \
&& mv phpMyAdmin* pma \
; \
sed -i 's/memory_limit = .*/memory_limit = 256M/g' /usr/src/lsws/lsphp74/etc/php/8.2/litespeed/php.ini \
&& sed -i 's/upload_max_filesize = .*/upload_max_filesize = 2000M/g' /usr/src/lsws/lsphp74/etc/php/8.2/litespeed/php.ini \
&& echo "post_max_size = 2000M" >> /usr/src/lsws/lsphp74/etc/php/8.2/litespeed/php.ini \
; \
chmod +x /etc/my_init.d/51-pma-startup.sh