reduced slack functionality, higher ease of use. Database migration wip
This commit is contained in:
@@ -3,25 +3,18 @@ FROM python:latest
|
||||
ENV TZ Europe/Zurich
|
||||
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
evince \
|
||||
# for checking
|
||||
xauth \
|
||||
#for gui
|
||||
ghostscript
|
||||
# for compression
|
||||
|
||||
|
||||
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 mkdir -p /app/auto_news
|
||||
RUN chown -R autonews:autonews /app
|
||||
USER autonews
|
||||
RUN export PATH=/home/autonews/.local/bin:$PATH
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN python3 -m pip install -r /app/requirements.txt
|
||||
|
||||
COPY app /app/auto_news
|
||||
COPY . /app/auto_news
|
||||
WORKDIR /app/auto_news
|
||||
|
Reference in New Issue
Block a user