-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (34 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
41 lines (34 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
# == Distribution preparation ==
FROM gcc:latest
ENV DEBIAN_FRONTEND=noninteractive
# Use BASH(1) as shell, affects the RUN commands below
RUN ln -sf bash /bin/sh && ls -al /bin/sh
# Add dependencies
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y build-essential \
python3-numpy \
python3-scipy \
python3-matplotlib \
python3-imageio \
python3-opencv \
python3-skimage \
libgcrypt20-dev \
libopenimageio-dev \
libopencv-dev \
pandoc
# Setup clean source dir
ADD . /imagewmark
WORKDIR /imagewmark
RUN git clean -fdx
# Build and install
RUN make all -j`nproc`
#RUN make -C install
# Volume for file IO
VOLUME ["/data"]
WORKDIR /data
# Exe for `docker run`
ENTRYPOINT ["/imagewmark/imagewmark"]
# docker build -f Dockerfile -t imagewmark-0 .
# docker run -ti --rm -v $PWD:/data imagewmark-0 gen-key mysecret.key
# docker run -ti --rm -v $PWD:/data imagewmark-0 add --key mysecret.key localimage.png watermarkedimage.png 0123456789abcdef0123456789abcdef
# docker run -ti --rm -v $PWD:/data imagewmark-0 get --key mysecret.key watermarkedimage.png