curl-impersonate: A special build of curl that can impersonate Chrome & Firefox
Dockerfile: use bullseye as Debian base
Dawid Wróbelf8be027a2a21
diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.ymlindex d2871c1..b430653 100644--- a/.github/workflows/publish-docker-image.yml+++ b/.github/workflows/publish-docker-image.yml@@ -67,8 +67,8 @@ jobs:with:images: lwthiker/curl-impersonatetags: |- type=semver,pattern={{version}},suffix=-chrome-slim-buster- type=semver,pattern={{major}}.{{minor}},suffix=-chrome-slim-buster+ type=semver,pattern={{version}},suffix=-chrome-slim-bullseye+ type=semver,pattern={{major}}.{{minor}},suffix=-chrome-slim-bullseye- name: Build and push the Chrome version of curl-impersonateuses: docker/build-push-action@v2@@ -85,8 +85,8 @@ jobs:with:images: lwthiker/curl-impersonatetags: |- type=semver,pattern={{version}},suffix=-ff-slim-buster- type=semver,pattern={{major}}.{{minor}},suffix=-ff-slim-buster+ type=semver,pattern={{version}},suffix=-ff-slim-bullseye+ type=semver,pattern={{major}}.{{minor}},suffix=-ff-slim-bullseye- name: Build and push the Firefox version of curl-impersonateuses: docker/build-push-action@v2diff --git a/Dockerfile.template b/Dockerfile.templateindex 0880074..06a0da6 100644--- a/Dockerfile.template+++ b/Dockerfile.template@@ -8,7 +8,7 @@{{#debian}}# Python is needed for building libnss.# Use it as a common base.-FROM python:3.10.1-slim-buster as builder+FROM python:3.10.1-slim-bullseye as builder{{/debian}}{{#alpine}}FROM alpine:3.15.0 as builder@@ -238,7 +238,7 @@ RUN apk add --no-cache nss{{/firefox}}{{/alpine}}{{#debian}}-FROM debian:buster-slim+FROM debian:bullseye-slimRUN apt-get update && apt-get install -y ca-certificates{{#firefox}}# curl tries to load the CA certificates for libnss.diff --git a/chrome/Dockerfile b/chrome/Dockerfileindex e2c1b1f..42275f7 100644--- a/chrome/Dockerfile+++ b/chrome/Dockerfile@@ -7,7 +7,7 @@# Python is needed for building libnss.# Use it as a common base.-FROM python:3.10.1-slim-buster as builder+FROM python:3.10.1-slim-bullseye as builderWORKDIR /build@@ -137,7 +137,7 @@ RUN chmod +x out/curl_*# Create a final, minimal image with the compiled binaries# only.-FROM debian:buster-slim+FROM debian:bullseye-slimRUN apt-get update && apt-get install -y ca-certificates# Copy curl-impersonate from the builder imageCOPY --from=builder /build/install /usr/localdiff --git a/firefox/Dockerfile b/firefox/Dockerfileindex f34bc0b..6830c75 100644--- a/firefox/Dockerfile+++ b/firefox/Dockerfile@@ -7,7 +7,7 @@# Python is needed for building libnss.# Use it as a common base.-FROM python:3.10.1-slim-buster as builder+FROM python:3.10.1-slim-bullseye as builderWORKDIR /build@@ -133,7 +133,7 @@ RUN chmod +x out/curl_*# Create a final, minimal image with the compiled binaries# only.-FROM debian:buster-slim+FROM debian:bullseye-slimRUN apt-get update && apt-get install -y ca-certificates# curl tries to load the CA certificates for libnss.# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,diff --git a/tests/Dockerfile b/tests/Dockerfileindex 702ed83..1e27cef 100644--- a/tests/Dockerfile+++ b/tests/Dockerfile@@ -4,7 +4,7 @@ ARG CHROME_IMAGE=curl-impersonate-chromeFROM ${FIREFOX_IMAGE} as ffFROM ${CHROME_IMAGE} as chrome-FROM python:3.10.1-slim-buster+FROM python:3.10.1-slim-bullseyeWORKDIR /tests