-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·41 lines (30 loc) · 1.11 KB
/
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
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:22.04
LABEL MAINTAINER "Claudius Korzen <[email protected]>"
ENV LANG "C.UTF-8"
ENV LC_ALL "C.UTF-8"
ENV LC_CTYPE "C.UTF-8"
ENV DEBIAN_FRONTEND "noninteractive"
ENV USR_DIR "/usr/local/"
# ==================================================================================================
WORKDIR /project
COPY scripts scripts
COPY Makefile .
COPY config.yml .
COPY project.description .
COPY project.usage .
COPY project.version .
# Install the requirements.
RUN apt-get update && apt-get install -y make
RUN make requirements/pre USR_DIR="$USR_DIR"
RUN make requirements/compile USR_DIR="$USR_DIR"
# Compile the project and build the package.
COPY src src
COPY resources resources
RUN make clean compile USR_DIR="$USR_DIR"
ENTRYPOINT [ "./build/pdftotext++" ]
# ==================================================================================================
# Build Docker image:
# docker build -f Dockerfiles/Dockerfile -t pdftotext-plus-plus:`cat version.txt` .
#
# Run Docker container:
# docker run --rm -it --name pdftotext-plus-plus.`cat version.txt` pdftotext-plus-plus:`cat version.txt` --version