Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tob1as committed Jan 18, 2025
1 parent bf94aad commit fed49ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build_docker_images-static-curl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,3 @@ jobs:
docker.io/${{steps.script.outputs.docker_repo}}:static-curl-${{steps.script.outputs.curl_version}}
quay.io/${{steps.script.outputs.redhat_quay_repo}}:static-curl
${{steps.script.outputs.git_url}}/${{steps.script.outputs.git_repo}}:static-curl
#- name: Docker Hub Description
# uses: peter-evans/dockerhub-description@v4
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# repository: ${{steps.script.outputs.docker_repo}}
# short-description: ${{ github.event.repository.description }}
# readme-filepath: README.md
10 changes: 7 additions & 3 deletions static-curl.scratch.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# build: docker build --no-cache --progress=plain --build-arg CURL_VERSION=8.11.0 -t tobi312/tools:static-curl -f static-curl.scratch.Dockerfile .
# build: docker build --no-cache --progress=plain --build-arg CURL_VERSION=8.11.1 -t tobi312/tools:static-curl -f static-curl.scratch.Dockerfile .
# hadolint ignore=DL3007
FROM alpine:latest AS static-curl

# curl: https://github.com/stunnel/static-curl
# (Alternatives: https://github.com/tarampampam/curl-docker , https://github.com/moparisthebest/static-curl or https://github.com/perryflynn/static-binaries)

SHELL ["/bin/ash", "-euxo", "pipefail", "-c"]

ARG CURL_VERSION
ARG CURL_LIBC="musl"

# hadolint ignore=DL3018,SC2086
RUN \
set -ex ; \
#set -ex ; \
apk add --no-cache \
ca-certificates \
#curl \
Expand Down Expand Up @@ -45,7 +49,7 @@ RUN \
wget -qO- https://github.com/stunnel/static-curl/releases/download/${CURL_VERSION}/curl-linux-${TARGETARCH}-${CURL_LIBC}-${CURL_VERSION}.tar.xz | tar -xJ -C /usr/local/bin/ curl ; \
/usr/local/bin/curl --version

FROM scratch
FROM scratch AS production

ARG CURL_VERSION
ARG VCS_REF
Expand Down

0 comments on commit fed49ac

Please sign in to comment.