当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 53

shaten/SMProxy
暂停

forked from louislivi/SMProxy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
louislivi 提交于 2019-07-12 11:26 . Update SMProxy version
FROM php:7.2.13-cli-alpine
ENV SMProxy_VERSION 1.2.9
RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS linux-headers \
&& pecl install swoole \
&& docker-php-ext-enable swoole \
\
# xBring in gettext so we can get `envsubst`, then throw
# the rest away. To do this, we need to install `gettext`
# then move `envsubst` out of the way so `gettext` can
# be deleted completely, then move `envsubst` back.
&& apk add --no-cache --virtual .gettext gettext \
&& mv /usr/bin/envsubst /tmp/ \
\
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' /usr/local/bin/php /usr/local/lib/php/extensions/*/*.so /tmp/envsubst \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --no-cache --virtual .php-rundeps $runDeps \
&& apk del .phpize-deps \
&& apk del .gettext \
&& mv /tmp/envsubst /usr/local/bin/ \
\
&& cd /usr/local \
&& wget https://github.com/louislivi/smproxy/releases/download/v$SMProxy_VERSION/smproxy.tar.gz \
&& tar -zxvf smproxy.tar.gz \
&& ls -lna
VOLUME /usr/local/smproxy/conf
VOLUME /usr/local/smproxy/logs
EXPOSE 3366
CMD ["/usr/local/smproxy/SMProxy", "start", "--console"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/shaten/smproxy.git
git@gitee.com:shaten/smproxy.git
shaten
smproxy
SMProxy
master

搜索帮助