-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf: use python embed * perf: Update web static version * perf: Update web static version --------- Co-authored-by: 吴小白 <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f669d41
commit 2501842
Showing
5 changed files
with
5 additions
and
42 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG VERSION=dev | ||
FROM jumpserver/web-static:20241012_082502 AS static | ||
FROM jumpserver/web-static:20241018_025026 AS static | ||
FROM jumpserver/web:${VERSION}-ce | ||
|
||
COPY --from=static /opt/ /opt/ |
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 |
---|---|---|
@@ -1,45 +1,8 @@ | ||
FROM python:3.11-alpine3.20 AS stage-build | ||
ARG TARGETARCH | ||
|
||
ARG DEPENDENCIES=" \ | ||
ca-certificates \ | ||
curl \ | ||
zip" | ||
|
||
RUN apk add --no-cache ${DEPENDENCIES} | ||
|
||
WORKDIR /opt/applets | ||
|
||
COPY ../requirements.txt ./requirements.txt | ||
|
||
ARG PIP_MIRROR=https://pypi.org/simple | ||
RUN set -ex \ | ||
&& mkdir pip_packages build \ | ||
&& pip config set global.index-url ${PIP_MIRROR} \ | ||
&& pip download \ | ||
--only-binary=:all: --platform win_amd64 \ | ||
--python-version 3.11.6 --abi cp311 \ | ||
-d pip_packages -r requirements.txt -i${PIP_MIRROR} \ | ||
&& cp requirements.txt pip_packages \ | ||
&& zip -r pip_packages.zip pip_packages \ | ||
&& mv pip_packages.zip build | ||
|
||
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 | ||
|
||
FROM alpine:3.20 | ||
ARG TARGETARCH | ||
|
||
WORKDIR /tmp | ||
COPY . . | ||
RUN set -ex \ | ||
&& apk add --no-cache bash \ | ||
&& bash ./prepare.sh | ||
|
||
COPY --from=stage-build /opt/applets/build /opt/download/applets | ||
COPY --from=stage-build /usr/local/bin/check /usr/local/bin/check |
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