mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
add dedicated gotenberg user to the base image, create the /gotenberg directory with gotenberg user as owner, updates base debian image to newest 9.*
This commit is contained in:
0
.dockerignore
Normal file
0
.dockerignore
Normal file
@@ -1,4 +1,4 @@
|
|||||||
FROM debian:9.5-slim
|
FROM debian:9-slim
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
# |--------------------------------------------------------------------------
|
||||||
# | Common libraries
|
# | Common libraries
|
||||||
@@ -91,3 +91,9 @@ RUN apt-get install -y \
|
|||||||
fonts-unfonts-core
|
fonts-unfonts-core
|
||||||
|
|
||||||
COPY build/base/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf
|
COPY build/base/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf
|
||||||
|
|
||||||
|
RUN groupadd --gid 1001 gotenberg \
|
||||||
|
&& useradd --uid 1001 --gid gotenberg --shell /bin/bash --no-create-home gotenberg \
|
||||||
|
&& mkdir /gotenberg \
|
||||||
|
&& chown gotenberg: /gotenberg
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user