add translations to docker container
This commit is contained in:
@@ -60,6 +60,7 @@ RUN python -m pip install --no-cache-dir --no-cache --no-index /root/wheels/* &&
|
||||
# copy the content of the local src and config directory to the working directory
|
||||
COPY --chmod=0700 entrypoint.sh /root/entrypoint.sh
|
||||
COPY src .
|
||||
COPY translations ./translations
|
||||
RUN echo ${VERSION} > /proxy-version.txt \
|
||||
&& date > /build-date.txt
|
||||
EXPOSE 5005 8127 10000
|
||||
|
||||
@@ -23,7 +23,7 @@ if [ "$user" = '0' ]; then
|
||||
echo "######################################################"
|
||||
echo "#"
|
||||
|
||||
exec su-exec $SERVICE_NAME "$@"
|
||||
exec su-exec $SERVICE_NAME "$@" -tr './translations/'
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
@@ -87,6 +87,7 @@ SRC_FILES := $(wildcard $(SRC_PROXY)/*.py)\
|
||||
$(wildcard $(SRC_PROXY)/cnf/*.toml)\
|
||||
$(wildcard $(SRC_PROXY)/gen3/*.py)\
|
||||
$(wildcard $(SRC_PROXY)/gen3plus/*.py)\
|
||||
$(wildcard $(SRC_PROXY)/utils/*.py)\
|
||||
$(wildcard $(SRC_PROXY)/web/*.py)\
|
||||
$(wildcard $(SRC_PROXY)/web/templates/*.html.j2)\
|
||||
$(wildcard $(SRC_PROXY)/web/static/css/*.css)\
|
||||
|
||||
Reference in New Issue
Block a user