Skip to content

Commit

Permalink
updated docker to version 24
Browse files Browse the repository at this point in the history
  • Loading branch information
fideloper committed Jan 4, 2024
1 parent 252634d commit 991f788
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ COPY dockerproxy .

RUN GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -o dockerproxy -ldflags "-X main.gitSha=$BUILD_SHA -X main.buildTime=$(date +'%Y-%m-%dT%TZ')"

FROM docker:20.10.12-alpine3.15
FROM docker:24.0.7-alpine3.19

RUN apk add bash ip6tables pigz sysstat procps lsof util-linux-misc xz curl sudo
RUN apk add bash iptables-legacy pigz sysstat procps lsof util-linux-misc xz curl sudo \
&& mv /sbin/iptables /sbin/iptables.original \
&& mv /sbin/ip6tables /sbin/ip6tables.original \
&& ln -s /sbin/iptables-legacy /sbin/iptables \
&& ln -s /sbin/ip6tables-legacy /sbin/ip6tables

COPY etc/docker/daemon.json /etc/docker/daemon.json

COPY --from=build /app/dockerproxy /dockerproxy
COPY --from=docker/buildx-bin:v0.7 /buildx /usr/libexec/docker/cli-plugins/docker-buildx
COPY --from=docker/buildx-bin:v0.12 /buildx /usr/libexec/docker/cli-plugins/docker-buildx

COPY ./entrypoint ./entrypoint
COPY ./docker-entrypoint.d/* ./docker-entrypoint.d/
Expand Down

0 comments on commit 991f788

Please sign in to comment.