Docker: Remove duplicate "apt-get dist-upgrade" from Dockerfiles
This commit is contained in:
parent
8a0e72db66
commit
eb5b886fd7
|
@ -93,8 +93,8 @@ curl -fsSL https://dl.photoprism.app/docker/demo/Makefile > /opt/photoprism/Make
|
|||
chown -Rf photoprism:photoprism /opt/photoprism
|
||||
|
||||
# clear package cache
|
||||
apt-get autoclean
|
||||
apt-get autoremove
|
||||
apt-get -y autoclean
|
||||
apt-get -y autoremove
|
||||
|
||||
# start services using docker-compose
|
||||
(cd /opt/photoprism && make install)
|
||||
|
|
|
@ -34,7 +34,7 @@ COPY --chown=root:root --chmod=755 /docker/scripts/*.sh /root/.local/bin/
|
|||
# 2. Install TensorFlow for C
|
||||
# 3. Install Chrome, NodeJS, NPM, Puppeteer, TestCafe & ChromeDriver
|
||||
# 4. Install Go
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt dist-upgrade 2>/dev/null && apt-get -qq install --no-install-recommends \
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt-get -qq install --no-install-recommends \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
wget \
|
||||
|
|
|
@ -33,7 +33,7 @@ COPY --chown=root:root --chmod=755 /docker/scripts/*.sh /root/.local/bin/
|
|||
# 2. Install TensorFlow for C
|
||||
# 3. Install Chrome, NodeJS, NPM, Puppeteer, TestCafe & ChromeDriver
|
||||
# 4. Install Go
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt dist-upgrade 2>/dev/null && apt-get -qq install --no-install-recommends \
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt-get -qq install --no-install-recommends \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
wget \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Install ufw package if needed:
|
||||
apt-get update && apt-get install --no-install-recommends ufw && apt-get autoclean && apt-get autoremove
|
||||
apt-get update && apt-get -y install --no-install-recommends ufw && apt-get -y autoclean && apt-get -y autoremove
|
||||
|
||||
# Basic ufw firewall setup allowing ssh, http, and https:
|
||||
ufw default deny incoming
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
##################################################### BUILD STAGE ######################################################
|
||||
FROM photoprism/develop:20220116 as build
|
||||
FROM photoprism/develop:20220202 as build
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG TARGETPLATFORM
|
||||
|
@ -34,7 +34,7 @@ RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80retry && \
|
|||
echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissing
|
||||
|
||||
# Install additional distribution packages
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt dist-upgrade 2>/dev/null && apt-get -qq install --no-install-recommends \
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt-get -qq install --no-install-recommends \
|
||||
gpgv \
|
||||
wget \
|
||||
curl \
|
||||
|
@ -57,8 +57,8 @@ RUN apt-get update && apt-get -qq dist-upgrade && apt dist-upgrade 2>/dev/null &
|
|||
ffmpeg \
|
||||
ffmpegthumbnailer \
|
||||
libavcodec-extra && \
|
||||
[ "$TARGETARCH" = "arm" ] || apt-get install darktable; \
|
||||
apt-get -y autoremove && apt-get -y autoclean && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
[ "$TARGETARCH" = "arm" ] || apt-get -y install darktable; \
|
||||
apt-get -y autoremove && apt-get -y autoclean && apt-get -y clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set environment variables, see https://docs.photoprism.app/getting-started/config-options/
|
||||
ENV TF_CPP_MIN_LOG_LEVEL="2" \
|
||||
|
|
|
@ -34,7 +34,7 @@ RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80retry && \
|
|||
echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissing
|
||||
|
||||
# Install additional distribution packages
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt dist-upgrade 2>/dev/null && apt-get -qq install --no-install-recommends \
|
||||
RUN apt-get update && apt-get -qq dist-upgrade && apt-get -qq install --no-install-recommends \
|
||||
gpgv \
|
||||
wget \
|
||||
curl \
|
||||
|
|
|
@ -12,12 +12,12 @@ tensorflow-amd64-cpu: /tmp/libtensorflow-linux-cpu-1.15.2.tar.gz tensorflow-amd6
|
|||
tensorflow-amd64-avx: /tmp/libtensorflow-linux-avx-1.15.2.tar.gz tensorflow-amd64-avx-install
|
||||
tensorflow-amd64-avx2: /tmp/libtensorflow-linux-avx2-1.15.2.tar.gz tensorflow-amd64-avx2-install
|
||||
apt-upgrade:
|
||||
apt-get update
|
||||
apt-get dist-upgrade
|
||||
apt-get -y update
|
||||
apt-get -y dist-upgrade
|
||||
apt-cleanup:
|
||||
apt-get -y autoremove && apt-get -y autoclean && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
apt-get -y autoremove && apt-get -y autoclean && apt-get -y clean && rm -rf /var/lib/apt/lists/*
|
||||
install-intel-graphics:
|
||||
apt-get install intel-opencl-icd intel-media-va-driver-non-free i965-va-driver-shaders libmfx1
|
||||
apt-get -y install intel-opencl-icd intel-media-va-driver-non-free i965-va-driver-shaders libmfx1
|
||||
/tmp/libtensorflow-linux-cpu-1.15.2.tar.gz:
|
||||
curl -fsSL "https://dl.photoprism.app/tensorflow/linux/libtensorflow-linux-cpu-1.15.2.tar.gz" > /tmp/libtensorflow-linux-cpu-1.15.2.tar.gz
|
||||
tensorflow-amd64-cpu-install:
|
||||
|
|
|
@ -38,7 +38,7 @@ EOF
|
|||
# Remove package files
|
||||
apt-get -y autoremove
|
||||
apt-get -y autoclean
|
||||
apt-get clean
|
||||
apt-get -y clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install NPM
|
||||
|
|
Loading…
Reference in New Issue
Block a user