clean config, support read-only non-root docker
All checks were successful
docker / docker (push) Successful in 22s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-11 15:33:40 +03:00
parent 16f954f1e5
commit 54b3588c3a
12 changed files with 300 additions and 539 deletions

View File

@ -1,24 +1,20 @@
FROM alpine:latest
FROM alpine
RUN apk update
RUN apk upgrade
RUN apk add php apache2-ssl php83-fileinfo php83-openssl \
php83-iconv php83-common php83-dom php83-sodium \
php83-curl curl php83-pecl-apcu php83-apache2 \
imagemagick php83-pecl-imagick php-mbstring \
imagemagick-webp imagemagick-jpeg
RUN apk update && \
apk upgrade && \
apk add \
php php83-fileinfo php83-iconv php83-common php83-dom php83-sodium \
php83-curl php83-pecl-apcu php83-apache2 php-mbstring \
php83-pecl-imagick imagemagick-webp imagemagick-jpeg
COPY ./docker/httpd.conf /etc/apache2/httpd.conf
COPY ./docker/init.sh /
WORKDIR /var/www/html
WORKDIR /srv
COPY ./src ./4get
WORKDIR /var/www/html/4get
COPY ./docker/gen_config.php .
RUN adduser -DSH -u 1000 -h /srv runner
RUN chown -R runner /srv && chmod +x /init.sh
RUN chmod 777 /var/www/html/4get/icons
RUN chmod +x /init.sh
CMD ["/init.sh"]
USER runner
CMD ["/init.sh"]