-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
29 lines (19 loc) · 856 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
FROM debian:wheezy
MAINTAINER Ilya Kogan <[email protected]>
# Add the OpenMediaVault repository
COPY openmediavault.list /etc/apt/sources.list.d/
ENV DEBIAN_FRONTEND noninteractive
# 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 openmediavault-keyring postfix locales -y --force-yes
RUN apt-get update -y; apt-get install openmediavault -y
# 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
EXPOSE 80 443
VOLUME /data
ENTRYPOINT /usr/sbin/omv-startup