-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
50 lines (40 loc) · 1.23 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
49
50
FROM alpine:3.9
# Define software versions.
ARG TMM_VERSION=3.1.15
# Define software download URLs.
ARG TMM_URL=https://release.tinymediamanager.org/v3/dist/tmm_${TMM_VERSION}_linux.tar.gz
# Define working directory.
WORKDIR /tmp
#set timezone
RUN apk add --no-cache tzdata
ENV TZ America/New_York
#add helper packages
COPY helpers/* /usr/local/bin/
COPY ./entrypoint.sh /mnt/entrypoint.sh
RUN chmod +x /usr/local/bin/add-pkg && chmod +x /usr/local/bin/del-pkg && chmod +x /mnt/entrypoint.sh
# Download TinyMediaManager
RUN \
mkdir -p /defaults && \
wget ${TMM_URL} -O /defaults/tmm.tar.gz
# Install dependencies.
RUN \
add-pkg \
openjdk8-jre \
libmediainfo \
bash \
mc\
gettext
# Add files.
COPY rootfs/ /
# Define mountable directories.
VOLUME ["/config"]
VOLUME ["/media"]
ENTRYPOINT ["/mnt/entrypoint.sh"]
CMD ["/usr/sbin/crond", "-f", "-d", "0"]
# Metadata.
LABEL \
org.label-schema.name="tinymediamanagerCMD" \
org.label-schema.description="Docker container for TinyMediaManager Command line cron scheduled" \
org.label-schema.version="unknown" \
org.label-schema.vcs-url="https://github.com/coolasice1999/crontest" \
org.label-schema.schema-version="1.0"