Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url #689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM node:12-alpine
LABEL maintainer="Gyteng <[email protected]>"
COPY ./shadowsocks-libev /tmp/repo
FROM node:14-alpine

ENV SS_LIBEV_VERSION=3.3.5
ENV SS_DIR=shadowsocks-libev-${SS_LIBEV_VERSION}

RUN set -ex \
&& apk add --no-cache --virtual .build-deps \
autoconf \
Expand All @@ -13,8 +15,12 @@ RUN set -ex \
linux-headers \
mbedtls-dev \
pcre-dev \
&& cd /tmp/repo \
&& ./autogen.sh \
curl \
tar \
&& cd /tmp \
&& curl -SL -k https://github.com/shadowsocks/shadowsocks-libev/releases/download/v${SS_LIBEV_VERSION}/shadowsocks-libev-${SS_LIBEV_VERSION}.tar.gz | tar xz \
&& cd $SS_DIR \
&& autoreconf --install --force \
&& ./configure --prefix=/usr --disable-documentation \
&& make install \
&& apk del .build-deps \
Expand All @@ -23,9 +29,13 @@ RUN set -ex \
$(scanelf --needed --nobanner /usr/bin/ss-* \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| sort -u) \
&& rm -rf /tmp/repo
&& rm -rf /tmp/* \
&& rm -rf /var/cache/apk/*


RUN apk --no-cache add tzdata iproute2 && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
echo "Europe/Moscow" > /etc/timezone && \
npm i -g shadowsocks-manager --unsafe-perm
CMD ["ssmgr"]

CMD ["ssmgr"]