Install dependencies of install-onlyoffice.sh in Dockerfile

This commit is contained in:
Wolfgang Ginolas 2024-04-09 09:04:14 +02:00 committed by wginolas
parent 5bf65cfbdb
commit 5119901fb8
1 changed files with 3 additions and 2 deletions

View File

@ -22,14 +22,15 @@ RUN npm install --production \
# Create actual CryptPad image
FROM node:lts-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y git rdfind && rm -rf /var/lib/apt/lists/*
# Create user and group for CryptPad so it does not run as root
RUN groupadd cryptpad -g 4001
RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad
# Install wget for healthcheck
RUN apt-get update && apt-get install --no-install-recommends -y wget && \
# Install git, rdfind, unzip and curl for install-onlyoffice.sh
RUN apt-get update && apt-get install --no-install-recommends -y \
wget git rdfind curl unzip ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*