Skip to content

Commit

Permalink
Install run-time dependencies earlier
Browse files Browse the repository at this point in the history
To prevent some package (from alpine repo) is updated in the meantime of building image and
causing version mismatch.
  • Loading branch information
Chocobo1 committed Dec 21, 2023
1 parent dc117d5 commit a9d8a19
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
23 changes: 12 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ FROM alpine:latest AS base
RUN \
apk --no-cache --update-cache upgrade

# run-time dependencies
RUN \
apk --no-cache add \
bash \
curl \
doas \
python3 \
qt6-qtbase \
qt6-qtbase-sqlite \
tini \
tzdata

# image for building
FROM base AS builder

Expand Down Expand Up @@ -116,17 +128,6 @@ RUN \
# image for running
FROM base

RUN \
apk --no-cache add \
bash \
curl \
doas \
python3 \
qt6-qtbase \
qt6-qtbase-sqlite \
tini \
tzdata

RUN \
adduser \
-D \
Expand Down
23 changes: 12 additions & 11 deletions manual_build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ FROM alpine:latest AS base
RUN \
apk --no-cache --update-cache upgrade

# run-time dependencies
RUN \
apk --no-cache add \
bash \
curl \
doas \
python3 \
qt6-qtbase \
qt6-qtbase-sqlite \
tini \
tzdata

# image for building
FROM base AS builder

Expand Down Expand Up @@ -116,17 +128,6 @@ RUN \
# image for running
FROM base

RUN \
apk --no-cache add \
bash \
curl \
doas \
python3 \
qt6-qtbase \
qt6-qtbase-sqlite \
tini \
tzdata

RUN \
adduser \
-D \
Expand Down

0 comments on commit a9d8a19

Please sign in to comment.