chore(docker): 支持独立的WebSocket 服务暴漏

This commit is contained in:
2025-12-19 18:04:29 +08:00
parent ba5c2239ac
commit f8291dd2ba
5 changed files with 19 additions and 7 deletions

View File

@@ -27,9 +27,14 @@ RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
iputils-ping \
iputils-ping \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 安装 WebSocat 完成后,清理缓存
COPY ./websocat /usr/local/bin/websocat
RUN chmod +x /usr/local/bin/websocat
# 安装 PHP 扩展
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install \

View File

@@ -47,7 +47,7 @@ startsecs=3
stopwaitsecs=10
[program:websocket-server]
command=php src/ws_server.php
command=php ./ws_server.php
workdir=/var/www/html
autostart=true
autorestart=true

BIN
docker/php/websocat Normal file

Binary file not shown.