浏览代码

Update ARM for 22.04

Fmstrat 2 年之前
父节点
当前提交
f1550aa7aa
共有 1 个文件被更改,包括 25 次插入11 次删除
  1. 25 11
      arm.Dockerfile

+ 25 - 11
arm.Dockerfile

@@ -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