mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-24 10:13:22 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8429260408 | ||
|
|
2a32d39405 | ||
|
|
a82c421460 | ||
|
|
3e18501a5f | ||
|
|
f88988d7a5 | ||
|
|
11ad52edcd | ||
|
|
a924c9da70 | ||
|
|
174f145d54 |
+3
-18
@@ -36,27 +36,13 @@ COPY run.sh /run.sh
|
||||
RUN chmod u+rwx /run.sh
|
||||
|
||||
# Calculate download URL
|
||||
ENV VERSION 4.8.0
|
||||
ENV URL https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.gz
|
||||
ENV VERSION 4.8+snapshot
|
||||
ENV URL https://files.phpmyadmin.net/snapshots/phpMyAdmin-${VERSION}-all-languages.tar.gz
|
||||
LABEL version=$VERSION
|
||||
|
||||
# Download tarball, verify it using gpg and extract
|
||||
RUN set -ex; \
|
||||
apk add --no-cache --virtual .fetch-deps \
|
||||
gnupg \
|
||||
; \
|
||||
\
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
export GPGKEY="3D06A59ECE730EB71B511C17CE752F178259BD92"; \
|
||||
curl --output phpMyAdmin.tar.gz --location $URL; \
|
||||
curl --output phpMyAdmin.tar.gz.asc --location $URL.asc; \
|
||||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --keyserver keys.gnupg.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --keyserver pgp.mit.edu --recv-keys "$GPGKEY" \
|
||||
|| gpg --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --verify phpMyAdmin.tar.gz.asc phpMyAdmin.tar.gz; \
|
||||
rm -rf "$GNUPGHOME"; \
|
||||
tar xzf phpMyAdmin.tar.gz; \
|
||||
rm -f phpMyAdmin.tar.gz phpMyAdmin.tar.gz.asc; \
|
||||
mv phpMyAdmin-$VERSION-all-languages /www; \
|
||||
@@ -64,8 +50,7 @@ RUN set -ex; \
|
||||
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /www/libraries/vendor_config.php; \
|
||||
chown -R root:nobody /www; \
|
||||
find /www -type d -exec chmod 750 {} \; ; \
|
||||
find /www -type f -exec chmod 640 {} \; ; \
|
||||
apk del .fetch-deps
|
||||
find /www -type f -exec chmod 640 {} \;
|
||||
|
||||
# Add directory for sessions to allow session persistence
|
||||
RUN mkdir /sessions \
|
||||
|
||||
Reference in New Issue
Block a user