Skip to content

Commit

Permalink
docker: add a2enmod and add more soft links
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored May 15, 2024
1 parent 883fbef commit 8ec499e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,22 @@ COPY entrypoint.sh /opt/entrypoint.sh

ADD https://github.com/mikefarah/yq/releases/latest/download/yq_linux_${TARGETARCH} /usr/bin/yq

RUN echo "/usr/local/lib/sogo" > /etc/ld.so.conf.d/sogo.conf && \
RUN a2enmod \
headers \
proxy \
proxy_http \
rewrite \
ssl && \
echo "/usr/local/lib/sogo" > /etc/ld.so.conf.d/sogo.conf && \
ldconfig && \
groupadd --system sogo && \
useradd --system --gid sogo sogo && \
mkdir -p /usr/lib/GNUstep/ && \
(ln -s /usr/local/lib/*.so /usr/lib/ || :) && \
(ln -s /usr/local/lib/GNUstep/* /usr/lib/GNUstep/ || :) && \
(ln -s /usr/local/lib/GNUstep/Libraries/Resources/* /usr/lib/GNUstep/Libraries/Resources/ || :) && \
ln -s /usr/local/lib/GNUstep/Libraries/Resources /usr/lib/GNUstep/Libraries/Resources && \
ln -s /usr/local/include/GNUstep /usr/include/GNUstep && \
ln -s /usr/local/lib/sogo /usr/lib/sogo && \
ln -s /usr/local/sbin/sogo-tool /usr/sbin/sogo-tool && \
ln -s /usr/local/sbin/sogo-ealarms-notify /usr/sbin/sogo-ealarms-notify && \
ln -s /usr/local/sbin/sogo-slapd-sockd /usr/sbin/sogo-slapd-sockd && \
Expand Down

0 comments on commit 8ec499e

Please sign in to comment.