fix: run Snell on glibc-based Debian image

This commit is contained in:
Codex
2026-07-19 09:04:34 -07:00
parent 6b8bfa58ba
commit 290c7620bf
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -9,9 +9,11 @@ RUN apk add --no-cache curl unzip \
&& unzip -p /tmp/snell.zip snell-server > /snell-server \ && unzip -p /tmp/snell.zip snell-server > /snell-server \
&& chmod 755 /snell-server && chmod 755 /snell-server
FROM alpine:3.21 FROM debian:bookworm-slim
RUN apk add --no-cache ca-certificates RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates libstdc++6 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=downloader /snell-server /usr/local/bin/snell-server COPY --from=downloader /snell-server /usr/local/bin/snell-server
COPY entrypoint.sh /usr/local/bin/entrypoint.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod 755 /usr/local/bin/entrypoint.sh RUN chmod 755 /usr/local/bin/entrypoint.sh
+4 -2
View File
@@ -9,9 +9,11 @@ RUN apk add --no-cache curl unzip \
&& unzip -p /tmp/snell.zip snell-server > /snell-server \ && unzip -p /tmp/snell.zip snell-server > /snell-server \
&& chmod 755 /snell-server && chmod 755 /snell-server
FROM alpine:3.21 FROM debian:bookworm-slim
RUN apk add --no-cache ca-certificates RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates libstdc++6 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=downloader /snell-server /usr/local/bin/snell-server COPY --from=downloader /snell-server /usr/local/bin/snell-server
COPY entrypoint.sh /usr/local/bin/entrypoint.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod 755 /usr/local/bin/entrypoint.sh RUN chmod 755 /usr/local/bin/entrypoint.sh