|
@@ -1,17 +1,31 @@
|
|
|
-FROM arm32v7/ubuntu:18.04
|
|
|
-MAINTAINER Fmstrat <[email protected]>
|
|
|
+FROM arm32v7/ubuntu:22.04
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
-RUN apt-get update && apt-get upgrade -y
|
|
|
+RUN \
|
|
|
+ apt-get update &&\
|
|
|
+ apt-get install -y \
|
|
|
+ pkg-config \
|
|
|
+ attr \
|
|
|
+ acl \
|
|
|
+ samba \
|
|
|
+ smbclient \
|
|
|
+ ldap-utils \
|
|
|
+ winbind \
|
|
|
+ libnss-winbind \
|
|
|
+ libpam-winbind \
|
|
|
+ krb5-user \
|
|
|
+ krb5-kdc \
|
|
|
+ supervisor \
|
|
|
+ openvpn \
|
|
|
+ inetutils-ping \
|
|
|
+ ntp &&\
|
|
|
+ apt-get clean autoclean &&\
|
|
|
+ apt-get autoremove --yes &&\
|
|
|
+ rm -rf /var/lib/{apt,dpkg,cache,log}/ &&\
|
|
|
+ rm -fr /tmp/* /var/tmp/*
|
|
|
|
|
|
-# Install all apps
|
|
|
-# The third line is for multi-site config (ping is for testing later)
|
|
|
-RUN apt-get install -y pkg-config
|
|
|
-RUN apt-get install -y attr acl samba smbclient ldap-utils winbind libnss-winbind libpam-winbind krb5-user krb5-kdc supervisor
|
|
|
-RUN apt-get install -y openvpn inetutils-ping
|
|
|
-
|
|
|
-# Set up script and run
|
|
|
ADD init.sh /init.sh
|
|
|
-RUN chmod 755 /init.sh
|
|
|
+ADD domain.sh /domain.sh
|
|
|
+RUN chmod 755 /init.sh /domain.sh
|
|
|
CMD /init.sh setup
|