forked from FPurchess/preview-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 1.03 KB
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
32
33
FROM python:3.11-bookworm
LABEL maintaner="Florian Purchess <florian@attacke.ventures>"
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 \
# Install additional codec libraries for ffmpeg
libavcodec-extra \
&& 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"]