forked from CollaboraOnline/online
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
71 lines (57 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
71 lines (57 loc) · 1.43 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ubuntu:24.04
WORKDIR /app
ENV LOCOREPATH=/app
RUN apt update && apt upgrade -y
RUN apt install -y \
dialog \
libpoco-dev \
python3-polib \
libcap-dev \
npm \
libpam-dev \
libzstd-dev \
wget \
git \
build-essential \
libtool \
libcap2-bin \
python3-lxml \
libpng-dev \
libgif-dev \
libcppunit-dev \
pkg-config \
fontconfig \
snapd \
chromium-browser
RUN wget https://github.com/CollaboraOnline/online/releases/download/for-code-assets/core-co-25.04-assets.tar.gz && \
tar xvf core-co-25.04-assets.tar.gz && \
rm core-co-25.04-assets.tar.gz
COPY . .
RUN groupadd -r -g 1001 cool && \
useradd -m -r -u 1001 -g 1001 cool
RUN mkdir -p /home/cool/.cache/fontconfig && \
chown -R cool:cool /home/cool
ENV HOME=/home/cool
ENV FONTCONFIG_PATH=/etc/fonts
RUN chown -R cool:cool /app
USER cool
WORKDIR /app/src/view
RUN ./autogen.sh
RUN ./configure \
--enable-silent-rules \
--with-lokit-path=${LOCOREPATH}/include \
--with-lo-path=${LOCOREPATH}/instdir \
--enable-debug \
--enable-cypress \
--disable-ssl
RUN make -j$(nproc)
RUN make -C browser
EXPOSE 9980
CMD exec ./coolwsd \
--o:sys_template_path=./systemplate \
--o:child_root_path=/app/jails \
--o:storage.filesystem[@allow]=true \
--o:admin_console.username=admin \
--o:admin_console.password=admin \
--o:logging.file[@enable]=false \
$extra_params