-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: build docker from release binary for faster and armv7l support
Co-authored-by: Kosette <35268640+Kosette@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
110 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM alpine:latest as builder | ||
|
||
ARG DOWNLOAD_BASE | ||
RUN ARCH=$(uname -m | sed -e "s/armv7l/armv7-unknown-linux-musleabihf/g" | sed -e "s/aarch64/aarch64-unknown-linux-musl/g" | sed -e "s/x86_64/x86_64-unknown-linux-musl/g") && \ | ||
apk add --no-cache curl && \ | ||
curl -L "${DOWNLOAD_BASE}/shadow-tls-${ARCH}" -o /shadow-tls && \ | ||
chmod +x /shadow-tls | ||
|
||
FROM alpine:latest | ||
|
||
ENV MODE="" | ||
ENV LISTEN="" | ||
ENV SERVER="" | ||
ENV TLS="" | ||
ENV THREADS="" | ||
ENV PASSWORD="" | ||
ENV ALPN="" | ||
ENV DISABLE_NODELAY="" | ||
ENV V3="" | ||
ENV STRICT="" | ||
|
||
COPY ./entrypoint.sh / | ||
RUN chmod +x /entrypoint.sh && apk add --no-cache ca-certificates | ||
COPY --from=builder /shadow-tls /usr/local/bin/shadow-tls | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters