Create an up-to-date image as the base for further actions

This commit is contained in:
Chocobo1 2023-11-28 16:07:48 +08:00
parent a7f03e29f4
commit 54b4b230ab
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 18 additions and 6 deletions

View File

@ -1,5 +1,11 @@
# create an up-to-date base image for everything
FROM alpine:latest AS base
RUN \
apk --no-cache --update-cache upgrade
# image for building
FROM alpine:latest AS builder
FROM base AS builder
ARG QBT_VERSION
ARG LIBBT_CMAKE_FLAGS=""
@ -16,7 +22,7 @@ RUN \
# https://git.alpinelinux.org/aports/tree/community/libtorrent-rasterbar/APKBUILD
# https://git.alpinelinux.org/aports/tree/community/qbittorrent/APKBUILD
RUN \
apk --update-cache add \
apk add \
boost-dev \
cmake \
git \
@ -108,7 +114,7 @@ RUN \
cat /sbom.txt
# image for running
FROM alpine:latest
FROM base
RUN \
apk --no-cache add \

View File

@ -1,5 +1,11 @@
# create an up-to-date base image for everything
FROM alpine:latest AS base
RUN \
apk --no-cache --update-cache upgrade
# image for building
FROM alpine:latest AS builder
FROM base AS builder
ARG QBT_VERSION
ARG LIBBT_CMAKE_FLAGS=""
@ -16,7 +22,7 @@ RUN \
# https://git.alpinelinux.org/aports/tree/community/libtorrent-rasterbar/APKBUILD
# https://git.alpinelinux.org/aports/tree/community/qbittorrent/APKBUILD
RUN \
apk --update-cache add \
apk add \
boost-dev \
cmake \
git \
@ -108,7 +114,7 @@ RUN \
cat /sbom.txt
# image for running
FROM alpine:latest
FROM base
RUN \
apk --no-cache add \