forked from ikogan/docker-openmediavault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 1.25 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 debian/eol:wheezy
LABEL org.opencontainers.image.authors="Ilya Kogan <[email protected]>"
LABEL org.opencontainers.image.authors="MAINTAINER Alex Lennon <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive
# Add the OpenMediaVault repository
COPY openmediavault.list /etc/apt/sources.list.d/
# Fix resolvconf issues with Docker
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
# Install OpenMediaVault packages and dependencies
RUN apt-get update -y; apt-get install nano openmediavault-keyring postfix locales -y --force-yes --allow-unauthenticated
RUN apt-get update -y; apt-get install openmediavault -y --allow-unauthenticated
# We need to make sure rrdcached uses /data for it's data
COPY defaults/rrdcached /etc/default
# Add our startup script last because we don't want changes
# to it to require a full container rebuild
COPY omv-startup /usr/sbin/omv-startup
RUN chmod +x /usr/sbin/omv-startup
COPY sleep.sh /usr/sbin/sleep.sh
RUN chmod +x /usr/sbin/sleep.sh
COPY fake-shared-folders.sh /usr/sbin/fake-shared-folders.sh
RUN chmod +x /usr/sbin/fake-shared-folders.sh
EXPOSE 8100:80 8443:443
VOLUME /data
SHELL [ "/bin/bash", "-c" ]
ENTRYPOINT /usr/sbin/omv-startup
#ENTRYPOINT /usr/sbin/sleep.sh