Dockerfile: use bullseye as Debian base

This commit is contained in:
Dawid Wróbel
2022-10-05 17:11:24 +02:00
parent f36059324c
commit f8be027a2a
5 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -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
+2 -2
View File
@@ -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.
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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