File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1- FROM alpine:edge
2- MAINTAINER Arnaud de Mouhy <
[email protected] >
1+ # Use a stable Alpine version instead of edge to avoid untrusted signatures
2+ FROM alpine:3
3+ LABEL maintainer=
"Arnaud de Mouhy <[email protected] >" 34
45ARG VCS_REF
56ARG BUILD_DATE
@@ -14,10 +15,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1415 org.label-schema.version=$VERSION \
1516 org.label-schema.schema-version="1.0"
1617
18+ # Copy custom configurations and scripts
1719COPY rootfs /
20+
21+ # Expose port 80 for Adminer
1822EXPOSE 80
1923
24+ # Run the build script and clean up
2025RUN sh /build.sh && rm /build.sh
2126
27+ # Set the entrypoint to s6 supervisor
2228ENTRYPOINT ["/bin/s6-svscan" , "/etc/services.d" ]
2329CMD []
Original file line number Diff line number Diff line change 22
33set -eux
44
5+ # Install necessary packages, including SSL support
56apk --update add \
67 s6 \
78 nginx \
@@ -13,7 +14,12 @@ apk --update add \
1314 php8-pecl-mongodb \
1415 php8-xml \
1516 php8-json \
16- php8-session
17+ php8-session \
18+ openssl \
19+ ca-certificates
20+
21+ # Update CA certificates for SSL
22+ update-ca-certificates
1723
1824# Fixing file upload rights
1925chown -R nginx: /var/lib/nginx
@@ -28,4 +34,5 @@ sed -r -i -e 's/upload_max_filesize = [0-9]+M/upload_max_filesize = 2000M/g' \
2834sed -r -i -e ' s/;request_terminate_timeout = [0-9]+/request_terminate_timeout = 300/g' \
2935 /etc/php8/php-fpm.d/www.conf
3036
37+ # Ensure run scripts are executable
3138find /etc/services.d -name run -exec chmod 755 {} \;
You can’t perform that action at this time.
0 commit comments