-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
38 lines (24 loc) · 1002 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
32
33
34
35
36
37
38
# This file is a computer- and human-readable description on how to install VisiCam on Ubuntu.
# It is automatically tested to make sure nothing breaks.
FROM ubuntu:20.04
RUN apt-get update
# VisiCam dependencies:
RUN apt-get -y --no-install-recommends install openjdk-11-jdk ant curl unzip libgtk2.0-0 libv4l-0
# If you like, create an extra user for VisiCam, and continue as that user
# (optional)
RUN adduser --gecos "" --disabled-password visicam
ADD . /home/visicam
RUN chown -R visicam /home/visicam
WORKDIR /home/visicam
USER visicam
# clone/download the VisiCut git repository and change to that folder (it contains "Dockerfile" and other files)
# Download JavaCV (if it wasn't downloaded yet)
RUN test -d lib/javacv-bin/ || ./lib/fetch-javacv.sh
# Build
RUN ant clean && ant
# Copy test config if no config exists
RUN test -f visicam.conf || cp test/visicam.conf .
# VisiCam will, by default, listen on TCP 8080 and UDP 8888
EXPOSE 8080
# launch via "ant run"
CMD ["ant", "run"]