From 077949f2d9058d776590e3faaa5a2263b9999cc8 Mon Sep 17 00:00:00 2001
From: aptalca <541623+aptalca@users.noreply.github.com>
Date: Sun, 7 Jul 2024 18:38:15 -0400
Subject: [PATCH] add new dep, libmagic1

---
 Dockerfile         | 3 ++-
 Dockerfile.aarch64 | 3 ++-
 README.md          | 1 +
 readme-vars.yml    | 1 +
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index e53f1c57b..9468f9959 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
 # syntax=docker/dockerfile:1
 
-FROM ghcr.io/linuxserver/unrar:latest as unrar
+FROM ghcr.io/linuxserver/unrar:latest AS unrar
 
 FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
 
@@ -24,6 +24,7 @@ RUN \
     imagemagick \
     ghostscript \
     libldap-2.5-0 \
+    libmagic1 \
     libsasl2-2 \
     libxi6 \
     libxslt1.1 \
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64
index fad90dfec..1c5e93263 100644
--- a/Dockerfile.aarch64
+++ b/Dockerfile.aarch64
@@ -1,6 +1,6 @@
 # syntax=docker/dockerfile:1
 
-FROM ghcr.io/linuxserver/unrar:arm64v8-latest as unrar
+FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
 
 FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
 
@@ -30,6 +30,7 @@ RUN \
     imagemagick \
     ghostscript \
     libldap-2.5-0 \
+    libmagic1 \
     libsasl2-2 \
     libxi6 \
     libxslt1.1 \
diff --git a/README.md b/README.md
index e989cae6d..ad3ab5d84 100644
--- a/README.md
+++ b/README.md
@@ -309,6 +309,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
 
 ## Versions
 
+* **07.07.24:** - Add new dep, libmagic1.
 * **17.10.23:** - Remove some packages that are required by the calibre mod but not the base container.
 * **07.10.23:** - Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar). Switch to Python virtual environment.
 * **13.04.23:** - Deprecate armhf.
diff --git a/readme-vars.yml b/readme-vars.yml
index 7af24dc4b..0366baee0 100644
--- a/readme-vars.yml
+++ b/readme-vars.yml
@@ -73,6 +73,7 @@ app_setup_block: |
 
 # changelog
 changelogs:
+  - { date: "07.07.24:", desc: "Add new dep, libmagic1."}
   - { date: "17.10.23:", desc: "Remove some packages that are required by the calibre mod but not the base container."}
   - { date: "07.10.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar). Switch to Python virtual environment."}
   - { date: "13.04.23:", desc: "Deprecate armhf."}