-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
814c80e
commit 4b68059
Showing
2 changed files
with
28 additions
and
10 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,4 +1,4 @@ | ||
# modify time: 2023120081104, you can modify here to trigger Docker Build action | ||
# modify time: 202312081532, you can modify here to trigger Docker Build action | ||
|
||
FROM python:3.10-slim-bullseye | ||
LABEL maintainer="Websoft9<[email protected]>" | ||
|
@@ -9,23 +9,27 @@ WORKDIR /websoft9 | |
ENV LIBRARY_VERSION=0.5.18 | ||
ENV MEDIA_VERSION=0.0.7 | ||
ENV websoft9_repo="https://github.com/Websoft9/websoft9" | ||
ENV docker_library_repo="https://github.com/Websoft9/docker-library" | ||
ENV media_repo="https://github.com/Websoft9/media" | ||
ENV websoft9_artifact="https://w9artifact.blob.core.windows.net/release/websoft9" | ||
ENV library_repo="https://github.com/Websoft9/docker-library" | ||
ENV source_github_pages="https://websoft9.github.io/websoft9" | ||
|
||
RUN apt update && apt install -y --no-install-recommends curl git jq cron iproute2 supervisor rsync wget unzip zip && \ | ||
# Prepare source files | ||
git clone --depth=1 $docker_library | ||
# Prepare library | ||
git clone --depth=1 $library_repo \ | ||
mv docker-library w9library && \ | ||
rm -rf w9library/.github && \ | ||
|
||
wget $media_repo/archive/refs/tags/$MEDIA_VERSION.zip -O ./media.zip && \ | ||
unzip media.zip && \ | ||
mv media-* w9media && \ | ||
rm -rf w9media/.github && \ | ||
# Prepare media | ||
if [ ! -f ./media.zip ]; then \ | ||
wget $websoft9_artifact/plugin/media/media-latest.zip -O ./media.zip && \ | ||
unzip media.zip \ | ||
fi \ | ||
mv media* w9media \ | ||
|
||
git clone --depth=1 https://github.com/swagger-api/swagger-ui.git && \ | ||
wget https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js && \ | ||
cp redoc.standalone.js swagger-ui/dist && \ | ||
|
||
git clone --depth=1 $websoft9_repo ./w9source && \ | ||
cp -r ./w9media ./media && \ | ||
cp -r ./w9library ./library && \ | ||
|