Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Make athenapdf-service run as non-root user #193

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions weaver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ RUN \
wget https://github.com/Yelp/dumb-init/releases/download/v1.0.0/dumb-init_1.0.0_amd64.deb \
&& dpkg -i dumb-init_*.deb \
&& rm dumb-init_*.deb \
&& mkdir -p /athenapdf-service/tmp/
&& mkdir -p /athenapdf-service/tmp/ \
&& mkdir -p /tmp/.X11-unix/ \
&& chmod 777 /tmp/.X11-unix/

COPY build/weaver /athenapdf-service/
WORKDIR /athenapdf-service/

ENV PATH /athenapdf-service/:$PATH
ENV PATH /athenapdf-service/:$PATH \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multi env need change to PATH=/athenapdf-service/:$PATH

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in current commit

HOME=/tmp

COPY conf/ /athenapdf-service/conf/

Expand Down