FROM phpdockerio/php:8.0-cli
LABEL maintainer="alexsuperstar@mail.ru"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get -y -q install \
libreoffice \
libreoffice-writer \
ure \
libreoffice-java-common \
libreoffice-core \
libreoffice-common \
openjdk-8-jre \
fonts-opensymbol \
hyphen-fr \
hyphen-de \
hyphen-en-us \
hyphen-it \
hyphen-ru \
fonts-dejavu \
fonts-dejavu-core \
fonts-dejavu-extra \
fonts-droid-fallback \
fonts-dustin \
fonts-f500 \
fonts-fanwood \
fonts-freefont-ttf \
fonts-liberation \
fonts-lmodern \
fonts-lyx \
fonts-sil-gentium \
fonts-texgyre \
fonts-tlwg-purisa \
ca-certificates && \
apt-get -y -q remove libreoffice-gnome && \
apt -y autoremove && \
rm -rf /var/lib/apt/lists/*
RUN adduser --home=/opt/libreoffice --disabled-password --gecos "" --shell=/bin/bash libreoffice
RUN update-ca-certificates
COPY app /app
WORKDIR "/app"
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN /usr/bin/composer install
VOLUME ["/app"]
CMD [ "php", "./app.php" ]
|