36 lines
896 B
Docker
36 lines
896 B
Docker
FROM debian:12-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
acl \
|
|
cron \
|
|
gettext-base \
|
|
krb5-user \
|
|
ldap-utils \
|
|
libnss-winbind \
|
|
libpam-winbind \
|
|
python3 \
|
|
rclone \
|
|
rsync \
|
|
samba \
|
|
samba-vfs-modules \
|
|
sqlite3 \
|
|
tini \
|
|
winbind \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir -p /app /data/private /data/fslogix /data/groups/data /data/groups/archive /state
|
|
|
|
COPY app/reconcile_shares.py /app/reconcile_shares.py
|
|
COPY app/backup_to_destination.py /app/backup_to_destination.py
|
|
COPY app/init.sh /app/init.sh
|
|
COPY etc/samba/smb.conf /app/smb.conf.template
|
|
|
|
RUN chmod +x /app/init.sh /app/reconcile_shares.py /app/backup_to_destination.py \
|
|
&& true
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
|
CMD ["/app/init.sh"]
|