mirror of
https://github.com/11notes/docker-kms-gui.git
synced 2025-10-23 16:14:06 +00:00
[comment] simpler styles path
This commit is contained in:
@@ -2,12 +2,12 @@ ARG APP_VERSION=stable
|
|||||||
ARG APP_VERSION_PREFIX=""
|
ARG APP_VERSION_PREFIX=""
|
||||||
ARG APP_VERSION_SUFFIX=""
|
ARG APP_VERSION_SUFFIX=""
|
||||||
|
|
||||||
# :: Build / templates
|
# :: Build / styles
|
||||||
FROM alpine/git AS templates
|
FROM alpine/git AS styles
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
git clone https://github.com/11notes/pykms-frontend.git; \
|
git clone https://github.com/11notes/pykms-frontend.git; \
|
||||||
cd /git/pykms-frontend; \
|
cd /git/pykms-frontend; \
|
||||||
git reset --hard 33777b8;
|
git reset --hard 9785b65;
|
||||||
|
|
||||||
# :: Header
|
# :: Header
|
||||||
FROM 11notes/kms:${APP_VERSION_PREFIX}${APP_VERSION}${APP_VERSION_SUFFIX}
|
FROM 11notes/kms:${APP_VERSION_PREFIX}${APP_VERSION}${APP_VERSION_SUFFIX}
|
||||||
@@ -60,15 +60,15 @@ ARG APP_VERSION_SUFFIX=""
|
|||||||
|
|
||||||
# :: add multi template option
|
# :: add multi template option
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
mkdir -p ${APP_ROOT}/.default/styles/py-kms/templates; \
|
mkdir -p ${APP_ROOT}/styles/py-kms; \
|
||||||
mkdir -p ${APP_ROOT}/.default/styles/custom-icon/templates; \
|
mkdir -p ${APP_ROOT}/styles/custom-icon; \
|
||||||
cp -R /opt/py-kms/templates/* ${APP_ROOT}/.default/styles/py-kms/templates; \
|
cp -R /opt/py-kms/templates ${APP_ROOT}/styles/py-kms; \
|
||||||
cp -R /opt/py-kms/static/* ${APP_ROOT}/.default/styles/py-kms/static; \
|
cp -R /opt/py-kms/static ${APP_ROOT}/styles/py-kms; \
|
||||||
rm -rf /opt/py-kms/templates; \
|
rm -rf /opt/py-kms/templates; \
|
||||||
rm -rf /opt/py-kms/static;
|
rm -rf /opt/py-kms/static;
|
||||||
|
|
||||||
COPY --from=templates /git/pykms-frontend/templates ${APP_ROOT}/.default/styles/custom-icon/templates
|
COPY --from=styles /git/pykms-frontend/templates ${APP_ROOT}/styles/custom-icon/templates
|
||||||
COPY --from=templates /git/pykms-frontend/static ${APP_ROOT}/.default/styles/custom-icon/static
|
COPY --from=styles /git/pykms-frontend/static ${APP_ROOT}/styles/custom-icon/static
|
||||||
|
|
||||||
# :: set correct permissions
|
# :: set correct permissions
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
# apply correct style
|
# apply correct style
|
||||||
rm -rf /opt/py-kms/templates
|
rm -rf /opt/py-kms/templates
|
||||||
rm -rf /opt/py-kms/static
|
rm -rf /opt/py-kms/static
|
||||||
TEMPLATE_DIR=${APP_ROOT}/.default/styles
|
TEMPLATE_DIR=${APP_ROOT}/styles
|
||||||
case ${KMS_GUI_STYLE} in
|
case ${KMS_GUI_STYLE} in
|
||||||
py-kms)
|
py-kms)
|
||||||
ln -s ${TEMPLATE_DIR}/py-kms/templates /opt/py-kms/templates
|
ln -s ${TEMPLATE_DIR}/py-kms/templates /opt/py-kms/templates
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
*)
|
*)
|
||||||
ln -s ${TEMPLATE_DIR}/custom-icon/templates /opt/py-kms/templates
|
ln -s ${TEMPLATE_DIR}/custom-icon/templates /opt/py-kms/templates
|
||||||
ln -s ${TEMPLATE_DIR}/custom-icon/static /opt/py-kms/static
|
ln -s ${TEMPLATE_DIR}/custom-icon/static /opt/py-kms/static
|
||||||
eleven log info "using default GUI style"
|
eleven log info "using custom-icon (default) GUI style"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user