Initial commit

This commit is contained in:
Mike Conrad
2024-10-23 10:42:55 -04:00
commit cc4a321837
6 changed files with 933 additions and 0 deletions

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
# syntax=docker/dockerfile:1
FROM node:20-bullseye-slim AS base
ENV DEBIAN_FRONTEND=noninteractive
ARG LIBREOFFICE_VERSION=7.1.4.1
WORKDIR /app
RUN apt-get update && apt-get install wget=1.21-1+deb11u1 --yes
RUN wget https://downloadarchive.documentfoundation.org/libreoffice/old/${LIBREOFFICE_VERSION}/deb/x86_64/LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb.tar.gz
RUN apt-get install -y \
libcairo2=1.16.0-5 \
libcups2=2.3.3op2-3+deb11u9 \
libdbus-glib-1-2=0.110-6 \
libfontconfig1=2.13.1-4.2 \
libglu1-mesa=9.0.1-1 \
libsm6=2:1.2.3-1 \
libxinerama1=2:1.1.4-2
RUN tar -zxvf LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb.tar.gz
WORKDIR /app/LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb/DEBS
RUN dpkg -i *.deb
WORKDIR /app
RUN rm -rf /app/LibreOffice_7*
COPY . .
RUN npm i
EXPOSE 8000
CMD ["node", "index.js"]