Files
bibreminder/Dockerfile
matthias 6f3467e73b
All checks were successful
continuous-integration/drone/push Build is passing
„Dockerfile“ ändern
2020-11-02 05:45:30 +00:00

21 lines
484 B
Docker

FROM python:3.8-alpine as base
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --prefix=/install -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /home/appuser
USER appuser
COPY bibcheck.py ./
CMD ["python", "./bibcheck.py"]