Skip to content

Commit 090618d

Browse files
authored
Install dockerize in base-server image (#263)
* Install dockerize in base-server image * address comments
1 parent 2d16e70 commit 090618d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docker/base-images/base-admin-tools.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN pipx install --global cqlsh
1414

1515
FROM ${BASE_IMAGE} AS base-admin-tools
1616

17-
RUN apk add --update --no-cache \
17+
RUN apk upgrade --no-cache
18+
RUN apk add --no-cache \
1819
python3 \
1920
libev \
2021
ca-certificates \
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
ARG BASE_IMAGE=alpine:3.21
22

3+
FROM golang:1.23-alpine3.21 AS builder
4+
5+
ARG DOCKERIZE_VERSION=v0.9.2
6+
RUN go install github.com/jwilder/dockerize@${DOCKERIZE_VERSION}
7+
RUN cp $(which dockerize) /usr/local/bin/dockerize
8+
39
##### base-server target #####
410
FROM ${BASE_IMAGE} AS base-server
511

6-
RUN apk add --update --no-cache \
12+
RUN apk upgrade --no-cache
13+
RUN apk add --no-cache \
714
ca-certificates \
815
tzdata \
916
bash \
1017
curl
1118

19+
COPY --from=builder /usr/local/bin/dockerize /usr/local/bin
20+
1221
SHELL ["/bin/bash", "-c"]

0 commit comments

Comments
 (0)