Skip to content

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.yml
index 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-impersonate
tags: |
- 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-impersonate
uses: docker/build-push-action@v2
@@ -85,8 +85,8 @@ jobs:
with:
images: lwthiker/curl-impersonate
tags: |
- 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-impersonate
uses: docker/build-push-action@v2
diff --git a/Dockerfile.template b/Dockerfile.template
index 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-slim
RUN 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/Dockerfile
index 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 builder
WORKDIR /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-slim
RUN apt-get update && apt-get install -y ca-certificates
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
diff --git a/firefox/Dockerfile b/firefox/Dockerfile
index 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 builder
WORKDIR /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-slim
RUN 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/Dockerfile
index 702ed83..1e27cef 100644
--- a/tests/Dockerfile
+++ b/tests/Dockerfile
@@ -4,7 +4,7 @@ ARG CHROME_IMAGE=curl-impersonate-chrome
FROM ${FIREFOX_IMAGE} as ff
FROM ${CHROME_IMAGE} as chrome
-FROM python:3.10.1-slim-buster
+FROM python:3.10.1-slim-bullseye
WORKDIR /tests