Skip to content

Commit

Permalink
chore: format Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
  • Loading branch information
aofei committed Dec 7, 2024
1 parent 6c9f7cf commit 3bcc016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ ARG CLOUDFLARE_WARP_VERSION
ENV BUILD_ONLY_DEPS="lsb-release curl xz-utils"

RUN apt-get update && apt-get install -y ${BUILD_ONLY_DEPS} gnupg
RUN for TARBALL in s6-overlay-noarch.tar.xz s6-overlay-$(uname -m).tar.xz; do curl -fsSL https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/${TARBALL} | tar -xpJ -C /; done
RUN for TARBALL in s6-overlay-noarch.tar.xz "s6-overlay-$(uname -m).tar.xz"; do curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/${TARBALL}" | tar -xpJ -C /; done
RUN curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/cloudflare-client-archive-keyring.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/cloudflare-client-archive-keyring.gpg] https://pkg.cloudflareclient.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/cloudflare-client.list
RUN apt-get update && apt-get install -y cloudflare-warp${CLOUDFLARE_WARP_VERSION:+"=${CLOUDFLARE_WARP_VERSION}"}
RUN apt-get update && apt-get install -y cloudflare-warp"${CLOUDFLARE_WARP_VERSION:+=${CLOUDFLARE_WARP_VERSION}}"
RUN apt-get purge -y --auto-remove ${BUILD_ONLY_DEPS} && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/* /var/tmp/*

Expand Down

0 comments on commit 3bcc016

Please sign in to comment.