forked from odarriba/docker-timemachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (30 loc) · 932 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
30
31
32
33
34
35
36
37
38
39
40
FROM alpine:latest
ARG BUILD_DATE
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="TimeMachine - Samba" \
org.label-schema.description="TimeMachine server using Samba protocol." \
org.label-schema.vcs-url="https://github.com/odarriba/docker-timemachine" \
org.label-schema.schema-version="1.0"
##################
## BUILDING ##
##################
WORKDIR /
RUN apk update && \
apk upgrade && \
apk add --no-cache \
bash \
samba-server \
samba-common-tools \
samba-winbind \
supervisor
RUN mkdir -p /timemachine && \
mkdir -p /etc/samba && \
mkdir -p /var/log/supervisor
ADD bin/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ADD bin/add-account /usr/bin/add-account
ADD config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD config/smb.conf /etc/samba/smb.conf
EXPOSE 137/UDP 138/UDP 139/TCP 445/TCP
VOLUME ["/timemachine"]
CMD ["/entrypoint.sh"]