clean config, support read-only non-root docker
All checks were successful
docker / docker (push) Successful in 22s
All checks were successful
docker / docker (push) Successful in 22s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
28
Dockerfile
28
Dockerfile
@ -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"]
|
||||
|
Reference in New Issue
Block a user