Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
perf: static file
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Jul 25, 2024
1 parent c7146fb commit 6646670
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& apt-get clean all \
&& echo "no" | dpkg-reconfigure dash

ARG CHECK_VERSION=v1.0.2
RUN set -ex \
&& wget https://github.com/jumpserver-dev/healthcheck/releases/download/${CHECK_VERSION}/check-${CHECK_VERSION}-linux-${TARGETARCH}.tar.gz \
&& tar -xf check-${CHECK_VERSION}-linux-${TARGETARCH}.tar.gz \
&& mv check /usr/local/bin/ \
&& chown root:root /usr/local/bin/check \
&& chmod 755 /usr/local/bin/check \
&& rm -f check-${CHECK_VERSION}-linux-${TARGETARCH}.tar.gz

WORKDIR /opt/applets

COPY requirements.txt ./requirements.txt
Expand All @@ -44,3 +53,4 @@ RUN set -ex \
&& bash ./prepare.sh

COPY --from=stage-build /opt/applets/build /opt/applets
COPY --from=stage-build /usr/local/bin/check /usr/local/bin/check

0 comments on commit 6646670

Please sign in to comment.