mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
25 lines
523 B
Docker
25 lines
523 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
poppler-utils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY conjurer_librarian/requirements_librarian.txt /tmp/requirements.txt
|
|
RUN pip install -r /tmp/requirements.txt
|
|
|
|
COPY . /app
|
|
|
|
RUN useradd --create-home appuser \
|
|
&& chown -R appuser:appuser /app
|
|
|
|
USER appuser
|
|
|
|
CMD ["python", "-m", "conjurer_librarian.conjurer_librarian"]
|