Fix docker image (#3930)

* dist-upgrade in docker before install packages

* use apt dist-upgrade instead of upgrade in docker
This commit is contained in:
Jianfeng Liu 2022-06-24 16:31:20 +08:00 committed by GitHub
parent 381cc372db
commit 41959c40e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ FROM $BASE_IMAGE as armbian_builder
ARG CUSTOM_PACKAGES='g++-11-arm-linux-gnueabihf libssl3'
ENV CUSTOM_PACKAGES $CUSTOM_PACKAGES
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install \
RUN apt-get update && apt-get -y dist-upgrade && apt-get -y install \
joe \
software-properties-common \
gnupg \
@ -21,7 +21,7 @@ RUN sh -c " \
libc6-i386; \
fi"
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y dist-upgrade \
&& apt-get install -y --no-install-recommends \
$CUSTOM_PACKAGES \
acl \