File tree Expand file tree Collapse file tree
config/s6/services/webman Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM php:8.4.16-cli-alpine
22
33LABEL Maintainer="ShaoBo Wan (Tinywan) <756684177@qq.com>" \
4- Description="Webman Lightweight container with PHP 8.4.16 based on Alpine Linux with S6 Overlay ."
4+ Description="Webman Lightweight container with PHP 8.4.16 based on Alpine Linux."
55
66# Use Alibaba Cloud mirror for faster downloads
77RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories
88
9- # Install S6 Overlay v3
10- ADD https://github.com/just-containers/s6-overlay/releases/download/v3.2.0.0/s6-overlay-noarch.tar.xz /tmp
11- RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && rm /tmp/s6-overlay-noarch.tar.xz
12- ADD https://github.com/just-containers/s6-overlay/releases/download/v3.2.0.0/s6-overlay-x86_64.tar.xz /tmp
13- RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz && rm /tmp/s6-overlay-x86_64.tar.xz
14-
159# Install runtime dependencies only (build deps will be installed and removed later)
1610RUN apk add --no-cache curl ca-certificates tzdata
1711
@@ -37,20 +31,11 @@ RUN curl -sS https://getcomposer.org/installer | php \
3731# Configure PHP
3832COPY config/php.ini /usr/local/etc/php/conf.d/zzz_custom.ini
3933
40- # Setup S6 Overlay services
41- COPY config/s6/ /etc/s6-overlay/
42-
43- # Make scripts executable
44- RUN chmod +x /etc/s6-overlay/cont-init.d/* \
45- && chmod +x /etc/s6-overlay/services/*/run 2>/dev/null || true
46-
4734# Setup document root
4835RUN mkdir -p /app
4936
50- # Set S6 Overlay as entrypoint
51- ENTRYPOINT ["/init" ]
52- VOLUME /app
5337WORKDIR /app
5438EXPOSE 8787
5539
56- CMD []
40+ # Start webman directly
41+ CMD ["php" , "start.php" , "start" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments