-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (38 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
51 lines (38 loc) · 1.06 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM denoland/deno:debian
LABEL org.label-schema.name="dms"
LABEL org.opencontainers.image.description="MongoDB Based DMS System working with the deno-asn-generator"
LABEL org.opencontainers.image.source=https://github.com/wuespace/dms
LABEL org.opencontainers.image.licenses=MIT
LABEL maintainer="WüSpace e. V."
EXPOSE 41319
ARG PACKAGES="\
# Fonts
fonts-liberation \
# PDF text extraction with pdftotext
poppler-utils \
# OCR with ocrmypdf
ocrmypdf \
tesseract-ocr-eng \
tesseract-ocr-deu \
# ImageMagick
imagemagick \
# ImageMagick with PDF support
ghostscript \
# zbarimg
zbar-tools \
"
RUN apt-get update && apt-get install --yes --quiet --no-install-recommends ${PACKAGES}
WORKDIR /app
# Install Dependencies
COPY deno.json deno.json
COPY deno.lock deno.lock
RUN deno install --frozen
# Prepare static files
COPY theme.scss theme.scss
COPY client client
COPY scripts scripts
RUN deno task compile:theme
RUN deno task compile:client
COPY . .
RUN deno install --frozen --entrypoint main.ts
ENTRYPOINT [ "/tini", "--", "docker-entrypoint.sh", "./main.ts" ]