forked from robinovsky/preview-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 979 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.11-bookworm
LABEL maintaner="Florian Purchess <[email protected]>"
RUN apt-get update && \
apt-get install -y poppler-utils qpdf libfile-mimeinfo-perl libimage-exiftool-perl ghostscript libsecret-1-0 zlib1g-dev libjpeg-dev \
libreoffice inkscape ffmpeg xvfb \
libnotify4 libappindicator3-1 curl \
scribus inkscape \
&& rm -rf /var/lib/apt/lists/*
ENV DRAWIO_VERSION="12.6.5"
RUN curl -LO https://github.com/jgraph/drawio-desktop/releases/download/v${DRAWIO_VERSION}/draw.io-amd64-${DRAWIO_VERSION}.deb && \
dpkg -i draw.io-amd64-${DRAWIO_VERSION}.deb && \
rm draw.io-amd64-${DRAWIO_VERSION}.deb
WORKDIR /app
RUN pip install pipenv vtk
COPY Pipfile* /app/
RUN pipenv install --system
COPY docker-entrypoint.sh /app/
COPY app.py /app/
RUN groupadd -r previewservice && useradd -r -s /bin/false -g previewservice previewservice
RUN chown -R previewservice:previewservice /app
USER previewservice
EXPOSE 8000
CMD ["./docker-entrypoint.sh"]