Skip to content

Commit

Permalink
Bump Alpine version
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Macedo <[email protected]>
  • Loading branch information
macedogm committed Aug 7, 2024
1 parent e832c67 commit a3d918b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ARG ALPINE=alpine:3.17.2
ARG ALPINE=alpine:3.20
FROM ${ALPINE} AS verify
ARG ARCH
ARG TAG
WORKDIR /verify
ADD https://github.com/k3s-io/k3s/releases/download/${TAG}/sha256sum-${ARCH}.txt .
RUN set -x \
&& apk update \
&& apk --no-cache upgrade \
&& apk --no-cache add \
curl \
file
Expand All @@ -26,7 +28,9 @@ RUN if [ "${ARCH}" == "amd64" ]; then \
FROM ${ALPINE}
ARG ARCH
ARG TAG
RUN apk --no-cache add \
RUN apk update \
&& apk --no-cache upgrade \
&& apk --no-cache add \
jq libselinux-utils procps
COPY --from=verify /opt/k3s /opt/k3s
COPY scripts/upgrade.sh /bin/upgrade.sh
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18.4
FROM alpine:3.20

COPY --from=plugins/manifest:1.2.3 /bin/* /bin/

Expand All @@ -11,6 +11,9 @@ ENV DOCKER_PASSWORD $DOCKER_PASSWORD
ARG DRONE_TAG
ENV DRONE_TAG $DRONE_TAG

RUN apk update \
&& apk --no-cache upgrade

COPY ./scripts/manifest /bin/

RUN manifest

0 comments on commit a3d918b

Please sign in to comment.