mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-06-23 07:09:07 +00:00
stick to client 10.11 version
This commit is contained in:
parent
d5d98e5a7c
commit
dc253cd1ea
2 changed files with 15 additions and 14 deletions
18
Dockerfile
18
Dockerfile
|
@ -12,17 +12,17 @@ ENV GO111MODULE=on
|
|||
RUN go mod tidy
|
||||
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o /go/bin/dockerize .
|
||||
|
||||
FROM alpine:3.21.0
|
||||
FROM alpine:3.20.3
|
||||
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
|
||||
|
||||
RUN apk add --update \
|
||||
tzdata \
|
||||
bash \
|
||||
mysql-client \
|
||||
gzip \
|
||||
openssl \
|
||||
mariadb-connector-c \
|
||||
fdupes && \
|
||||
tzdata \
|
||||
bash \
|
||||
gzip \
|
||||
openssl \
|
||||
mysql-client=~10.11 \
|
||||
mariadb-connector-c \
|
||||
fdupes && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY --from=binary /go/bin/dockerize /usr/local/bin
|
||||
|
@ -43,6 +43,6 @@ RUN mkdir /backup && \
|
|||
VOLUME ["/backup"]
|
||||
|
||||
HEALTHCHECK --interval=2s --retries=1800 \
|
||||
CMD stat /HEALTHY.status || exit 1
|
||||
CMD stat /HEALTHY.status || exit 1
|
||||
|
||||
CMD dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue