mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-17 13:52:14 +01:00
Refactor user permissions in Dockerfile
Refactor ownership and permissions setup for directories and app.jar.
This commit is contained in:
@@ -136,8 +136,16 @@ RUN python3 -m venv /opt/venv && \
|
||||
chmod +x /scripts/* && \
|
||||
# User permissions
|
||||
addgroup -S stirlingpdfgroup && adduser -S stirlingpdfuser -G stirlingpdfgroup && \
|
||||
chown -R stirlingpdfuser:stirlingpdfgroup $HOME /scripts /usr/share/fonts/opentype/noto /configs /customFiles /pipeline /tmp/stirling-pdf && \
|
||||
chown stirlingpdfuser:stirlingpdfgroup /app.jar && \
|
||||
chown -R stirlingpdfuser:stirlingpdfgroup \
|
||||
$HOME \
|
||||
/scripts \
|
||||
/usr/share/fonts/opentype/noto \
|
||||
/configs \
|
||||
/customFiles \
|
||||
/pipeline \
|
||||
/tmp/stirling-pdf \
|
||||
/app.jar && \
|
||||
chmod 755 /usr/bin/soffice.bin && \
|
||||
ln -sf /bin/busybox /bin/sh
|
||||
|
||||
EXPOSE 8080/tcp
|
||||
|
||||
Reference in New Issue
Block a user