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:
Thomas Bøgh Fangel
2019-06-13 15:14:04 +02:00
parent cf20e2a510
commit ca41164980
2 changed files with 7 additions and 1 deletions

0
.dockerignore Normal file
View File

View File

@@ -1,4 +1,4 @@
FROM debian:9.5-slim
FROM debian:9-slim
# |--------------------------------------------------------------------------
# | Common libraries
@@ -91,3 +91,9 @@ RUN apt-get install -y \
fonts-unfonts-core
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