forked from thehomerepot/dwspectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (30 loc) · 1.01 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
FROM lsiobase/ubuntu:bionic
MAINTAINER Ryan Flagler
# global environment settings
ENV DEBIAN_FRONTEND="noninteractive"
ENV COMPANY_NAME="digitalwatchdog"
ENV SOFTWARE_URL="https://updates.networkoptix.com/digitalwatchdog/32842/linux/dwspectrum-server-4.2.0.32842-linux64.deb"
# pull installer
RUN mkdir -p /opt/deb && \
curl -o /opt/deb/${COMPANY_NAME}.deb -L "${SOFTWARE_URL}"
# modify user
RUN usermod -l $COMPANY_NAME abc && \
groupmod -n $COMPANY_NAME abc && \
sed -i "s/abc/\$COMPANY_NAME/g" /etc/cont-init.d/10-adduser
# install packages
RUN apt-get update && \
apt-get install --no-install-recommends --yes \
gdb \
/opt/deb/${COMPANY_NAME}.deb && \
apt-get clean && \
apt-get autoremove --purge && \
rm -rf \
/opt/deb \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 7001
VOLUME /config /archive