发布 v1.10 #5
@@ -129,8 +129,9 @@ RUN fc-cache -f && \
|
||||
mkdir -p /app/logs /app/artifacts /app/data && \
|
||||
chown -R easyflow:easyflow /app
|
||||
|
||||
COPY docker-soffice-wrapper.sh /usr/local/bin/soffice
|
||||
COPY docker-entrypoint.sh /usr/local/bin/easyflow-entrypoint.sh
|
||||
RUN chmod 755 /usr/local/bin/easyflow-entrypoint.sh
|
||||
RUN chmod 755 /usr/local/bin/soffice /usr/local/bin/easyflow-entrypoint.sh
|
||||
|
||||
VOLUME ["/app/logs", "/app/data"]
|
||||
EXPOSE 8111
|
||||
|
||||
21
docker-soffice-wrapper.sh
Normal file
21
docker-soffice-wrapper.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
profile_parent="${TMPDIR:-/tmp}"
|
||||
profile_dir="$(mktemp -d "${profile_parent%/}/easyflow-soffice-XXXXXX")"
|
||||
|
||||
cleanup() {
|
||||
rm -rf -- "$profile_dir"
|
||||
}
|
||||
|
||||
trap cleanup EXIT HUP INT TERM
|
||||
|
||||
/usr/bin/soffice \
|
||||
-env:UserInstallation="file://${profile_dir}" \
|
||||
--headless \
|
||||
--safe-mode \
|
||||
--nologo \
|
||||
--nodefault \
|
||||
--nolockcheck \
|
||||
--norestore \
|
||||
"$@"
|
||||
Reference in New Issue
Block a user