-
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
903d7cd
commit a4559ee
Showing
3 changed files
with
18 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,37 @@ | ||
# modify time: 202310241440, you can modify here to trigger Docker Build action | ||
# modify time: 202310241441, you can modify here to trigger Docker Build action | ||
|
||
FROM python:3.10-bullseye AS buildstage | ||
LABEL maintainer="Websoft9<[email protected]>" | ||
LABEL version="0.0.6" | ||
|
||
ENV LIBRARY_VERSION=v0.5.8 | ||
ENV MEDIA_VERSION=0.0.3 | ||
|
||
# Prepare library | ||
# Prepare source files | ||
RUN wget https://github.com/Websoft9/docker-library/archive/refs/tags/$LIBRARY_VERSION.zip -O ./library.zip && \ | ||
unzip library.zip && \ | ||
mv docker-library-* library && \ | ||
mkdir credentials && \ | ||
echo "This folder stored the credentials of other services that apphub will connect" > credentials/readme && \ | ||
|
||
wget https://github.com/Websoft9/media/archive/refs/tags/$MEDIA_VERSION.zip -O ./media.zip && \ | ||
unzip media.zip && \ | ||
mv media-* media && \ | ||
|
||
# Prepare Media and master data from Contentful | ||
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 https://github.com/Websoft9/plugin-appstore && \ | ||
mv -f plugin-appstore/data ./media && \ | ||
|
||
git clone --depth=1 https://github.com/Websoft9/websoft9 | ||
|
||
FROM python:3.10-slim-bullseye | ||
WORKDIR /websoft9 | ||
|
||
COPY --from=buildstage /media/data ./media | ||
COPY --from=buildstage /media ./media | ||
COPY --from=buildstage /library ./library | ||
COPY --from=buildstage /websoft9/apphub ./apphub | ||
COPY --from=buildstage /swagger-ui/dist ./apphub/swagger-ui | ||
|
||
RUN apt update && apt install git jq iproute2 supervisor -y && \ | ||
RUN apt update && apt install curl git jq iproute2 supervisor -y && \ | ||
mkdir credentials && \ | ||
echo "This folder stored the credentials of other services that integrated with apphub" > credentials/readme | ||
|
||
|
@@ -41,7 +44,6 @@ RUN chmod +r /etc/supervisor/conf.d/supervisord.conf | |
COPY config/entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
|
||
VOLUME /websoft9/apphub/logs | ||
VOLUME /websoft9/apphub/src/config | ||
VOLUME /websoft9/media | ||
|
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