Skip to content

Commit

Permalink
Create an up-to-date image as the base for further actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Nov 28, 2023
1 parent a7f03e2 commit 54b4b23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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=""
Expand All @@ -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 \
Expand Down Expand Up @@ -108,7 +114,7 @@ RUN \
cat /sbom.txt

# image for running
FROM alpine:latest
FROM base

RUN \
apk --no-cache add \
Expand Down
12 changes: 9 additions & 3 deletions manual_build/Dockerfile
Original file line number Diff line number Diff line change
@@ -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=""
Expand All @@ -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 \
Expand Down Expand Up @@ -108,7 +114,7 @@ RUN \
cat /sbom.txt

# image for running
FROM alpine:latest
FROM base

RUN \
apk --no-cache add \
Expand Down

0 comments on commit 54b4b23

Please sign in to comment.