-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
48 lines (37 loc) · 1.4 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
42
43
44
45
46
47
48
FROM ubuntu:17.04
MAINTAINER hotio
ARG DEBIAN_FRONTEND=noninteractive
ENV XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/config"
ENV LANG='C.UTF-8' LANGUAGE='C.UTF-8' LC_ALL='C.UTF-8'
# install packages
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends --no-install-suggests \
dirmngr && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | tee /etc/apt/sources.list.d/mono-official.list && \
apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
jq \
curl \
libcurl4-openssl-dev \
ca-certificates-mono \
mono-devel \
sqlite3 \
python \
mediainfo && \
# install s6-overlay
curl -s -o - -L "https://github.com/just-containers/s6-overlay/releases/download/v1.20.0.0/s6-overlay-amd64.tar.gz" | tar xzf - -C / && \
# make folders
mkdir -p /app /config && \
# create user
useradd -u 1000 -U -d /config -s /bin/false hotio && \
usermod -G users hotio && \
# clean up
apt-get autoremove -y && \
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
COPY root/ /
EXPOSE 8080
VOLUME ["/config"]
ENTRYPOINT ["/init"]
HEALTHCHECK --interval=200s --timeout=100s CMD curl --fail http://localhost:8080 || exit 1