mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
docker: replace mime-support package with media-types
This way the size of the slim image is similar to the previous buster based images
This commit is contained in:
@@ -28,7 +28,7 @@ FROM debian:bullseye-slim
|
|||||||
# Set to "true" to install the optional git and rsync dependencies
|
# Set to "true" to install the optional git and rsync dependencies
|
||||||
ARG INSTALL_OPTIONAL_PACKAGES=false
|
ARG INSTALL_OPTIONAL_PACKAGES=false
|
||||||
|
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates mime-support && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates media-types && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apt-get update && apt-get install --no-install-recommends -y git rsync && rm -rf /var/lib/apt/lists/*; fi
|
RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apt-get update && apt-get install --no-install-recommends -y git rsync && rm -rf /var/lib/apt/lists/*; fi
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ RUN sed -i "s|\"users_base_dir\": \"\",|\"users_base_dir\": \"/srv/sftpgo/data\"
|
|||||||
sed -i "s|\"backups\"|\"/srv/sftpgo/backups\"|" sftpgo.json && \
|
sed -i "s|\"backups\"|\"/srv/sftpgo/backups\"|" sftpgo.json && \
|
||||||
sed -i "s|\"sqlite\"|\"bolt\"|" sftpgo.json
|
sed -i "s|\"sqlite\"|\"bolt\"|" sftpgo.json
|
||||||
|
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y mime-support && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install --no-install-recommends -y media-types && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN mkdir /etc/sftpgo /var/lib/sftpgo /srv/sftpgo
|
RUN mkdir /etc/sftpgo /var/lib/sftpgo /srv/sftpgo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user