mirror of
https://github.com/qbittorrent/docker-qbittorrent-nox.git
synced 2024-11-23 01:09:41 +00:00
Create an up-to-date image as the base for further actions
This commit is contained in:
parent
a7f03e29f4
commit
54b4b230ab
12
Dockerfile
12
Dockerfile
@ -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 \
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user