test docker build

This commit is contained in:
Darren 2023-12-08 17:55:38 +08:00 committed by GitHub
parent 461eb2d12a
commit 8c0dca644a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,29 +17,7 @@ SHELL ["/bin/bash", "-c"]
RUN apt update && apt install -y --no-install-recommends curl git jq cron iproute2 supervisor rsync wget unzip zip && \
git clone --depth=1 $library_repo && \
mv docker-library w9library && \
rm -rf w9library/.github && \
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 && \
cp -r ./w9source/apphub ./apphub && \
cp -r ./swagger-ui/dist ./apphub/swagger-ui && \
cp -r ./w9source/apphub/src/config ./config && \
cp -r ./w9source/docker/apphub/script ./script && \
curl -o ./script/update_zip.sh $source_github_pages/scripts/update_zip.sh && \
pip install --no-cache-dir --upgrade -r apphub/requirements.txt && \
pip install -e ./apphub && \
# Clean cache and install files
rm -rf apphub/docs apphub/tests library.zip media.zip redoc.standalone.js swagger-ui w9library w9media w9source && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc /usr/share/doc-base
# supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf