-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 797 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# keep variables beyond the single build stages, see https://stackoverflow.com/a/53682110/12529534
FROM registry.cloudogu.com/official/base:3.23.3-6 AS doguctlbinary
FROM gotenberg/gotenberg:8.29.1-libreoffice
USER root
# hadolint ignore=DL3005
RUN apt-get -y update \
&& apt-get -y dist-upgrade \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& mkdir -p /var/ces \
&& chown -R gotenberg:gotenberg /var/ces
USER gotenberg
# hadolint ignore=DL3048
LABEL NAME="official/gotenberg" \
VERSION="8.29.1-1" \
maintainer="SCM Team <scm-team@cloudogu.com>"
COPY resources /
# unpack and install doguctl
COPY --from=doguctlbinary /usr/local/bin/doguctl /usr/local/bin/
EXPOSE 3000
HEALTHCHECK CMD doguctl healthy gotenberg || exit 1
CMD ["/startup.sh"]