Reviewed-on: https://storage.hided.net/gitea/devsam/docker/pulls/1
Co-authored-by: hide_d <hided62@gmail.com>
Co-committed-by: hide_d <hided62@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
2021-08-19 14:46:33 +09:00
parent a2b3a14384
commit 995c5fa94b
5 changed files with 14 additions and 4 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
FROM php:7.4-fpm-buster
FROM php:8.0-fpm-buster
#debian
ENV LC_ALL=C.UTF-8
@@ -30,7 +30,6 @@ RUN mkdir -p /var/www/html/; \
COPY entrypoint.sh /usr/local/bin/
COPY id_ecdsa known_hosts /var/www/.ssh/
COPY sam_conf.ini /usr/local/etc/php/conf.d/sam_conf.ini
VOLUME /var/www/html
ARG UID=33
@@ -44,6 +43,7 @@ RUN if [ "$UID" != 33 ]; then \
fi; \
echo $UID > /var/tmp.txt ; \
chmod +x /usr/local/bin/entrypoint.sh; \
mkdir -p /var/www/opcache; \
chown -R www-data:www-data /var/www; \
chmod -R g=u /var/www; \
mkdir -p /var/www/.ssh; \
@@ -51,5 +51,7 @@ RUN if [ "$UID" != 33 ]; then \
chmod 700 /var/www/.ssh; \
chmod 600 /var/www/.ssh/*;
COPY sam_conf.ini /usr/local/etc/php/conf.d/sam_conf.ini
ENTRYPOINT ["entrypoint.sh"]
CMD ["php-fpm"]