You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
811 B

  1. FROM alpine:3.18 AS build
  2. ENV DOCKER_VERSION=25.0.2
  3. RUN apk add --no-cache curl
  4. #RUN curl -L https://download.docker.com/linux/static/stable/x86_64/docker-"$DOCKER_VERSION".tgz | \
  5. RUN curl -L https://docker.0k.io/downloads/docker-"$DOCKER_VERSION".tgz | \
  6. tar -xz -C /tmp/ \
  7. && mv /tmp/docker/docker /usr/bin/docker
  8. RUN curl -L https://docker.0k.io/downloads/lock-40a4b8f > /usr/bin/lock \
  9. && chmod +x /usr/bin/lock
  10. FROM alpine:3.18
  11. ## Used by `lock`
  12. RUN apk add --no-cache bash
  13. ## /usr/bin/dc is a calculator provided by busybox that conflicts with
  14. ## the `dc` command provided by `compose`. We have no need of busybox
  15. ## calculator
  16. RUN rm /usr/bin/dc
  17. COPY --from=build /usr/bin/docker /usr/bin/docker
  18. COPY --from=build /usr/bin/lock /usr/bin/lock
  19. ENTRYPOINT [ "crond", "-f", "-l", "0" ]