And mapped user permissions

This commit is contained in:
2022-09-12 12:44:31 +02:00
parent 118b5120fd
commit b00e5b4dff
2 changed files with 5 additions and 5 deletions

View File

@@ -5,15 +5,15 @@ ENV TZ Europe/Zurich
RUN apt-get update && apt-get install -y ghostscript
# for compression of pdfs
RUN useradd --create-home --shell /bin/bash --uid 1001 autonews
# RUN useradd --create-home --shell /bin/bash --uid 1001 autonews
# id mapped to local user
# home directory needed for pip package installation
RUN export PATH=/home/autonews/.local/bin:$PATH
# RUN export PATH=/home/autonews/.local/bin:$PATH
RUN mkdir -p /app/auto_news
RUN chown -R autonews:autonews /app
USER autonews
# RUN chown -R autonews:autonews /app
# USER autonews
COPY requirements.txt /app/requirements.txt
RUN python3 -m pip install -r /app/requirements.txt