diff --git a/cmd/authgear/Dockerfile b/cmd/authgear/Dockerfile index 63af79a77e..8d968c4410 100644 --- a/cmd/authgear/Dockerfile +++ b/cmd/authgear/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the Go binary -FROM golang:1.22.4-bookworm as stage1 +FROM quay.io/theauthgear/golang:1.22.4-noble as stage1 # Install build time C dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -32,10 +32,10 @@ COPY . . RUN make authui GIT_HASH=$GIT_HASH # Stage 3: Prepare the actual fs we use to run the program -FROM debian:bookworm-slim +FROM ubuntu:noble ARG GIT_HASH WORKDIR /app -# /etc/mime.types (mime-support) +# /etc/mime.types (media-types) # /usr/share/ca-certificates/*/* (ca-certificates) # /usr/share/zoneinfo/ (tzdata) RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -44,9 +44,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libmagic-dev \ libmagic-mgc \ ca-certificates \ - mime-support \ + media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations diff --git a/cmd/portal/Dockerfile b/cmd/portal/Dockerfile index bb59f60e50..b54622601d 100644 --- a/cmd/portal/Dockerfile +++ b/cmd/portal/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the Go binary -FROM golang:1.22.4-bookworm as stage1 +FROM quay.io/theauthgear/golang:1.22.4-noble as stage1 # Install build time C dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -42,10 +42,10 @@ COPY ./portal . RUN npm run build # Stage 4: Prepare the actual fs we use to run the program -FROM debian:bookworm-slim +FROM ubuntu:noble ARG GIT_HASH WORKDIR /app -# /etc/mime.types (mime-support) +# /etc/mime.types (media-types) # /usr/share/ca-certificates/*/* (ca-certificates) # /usr/share/zoneinfo/ (tzdata) RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -54,9 +54,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libmagic-dev \ libmagic-mgc \ ca-certificates \ - mime-support \ + media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations diff --git a/custombuild/cmd/authgearx/Dockerfile b/custombuild/cmd/authgearx/Dockerfile index f03195ca7a..4e932b55a7 100644 --- a/custombuild/cmd/authgearx/Dockerfile +++ b/custombuild/cmd/authgearx/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 # Stage 1: Build the Go binary -FROM golang:1.22.4-bookworm as stage1 +FROM quay.io/theauthgear/golang:1.22.4-noble as stage1 # Install build time C dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -50,10 +50,10 @@ COPY . . RUN make authui GIT_HASH=$GIT_HASH # Stage 3: Prepare the actual fs we use to run the program -FROM debian:bookworm-slim +FROM ubuntu:noble ARG GIT_HASH WORKDIR /app -# /etc/mime.types (mime-support) +# /etc/mime.types (media-types) # /usr/share/ca-certificates/*/* (ca-certificates) # /usr/share/zoneinfo/ (tzdata) RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -62,9 +62,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libmagic-dev \ libmagic-mgc \ ca-certificates \ - mime-support \ + media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations diff --git a/custombuild/cmd/portalx/Dockerfile b/custombuild/cmd/portalx/Dockerfile index 3e7371a48e..fef44c899c 100644 --- a/custombuild/cmd/portalx/Dockerfile +++ b/custombuild/cmd/portalx/Dockerfile @@ -1,15 +1,15 @@ # syntax=docker/dockerfile:1 # Stage 1: Build the Go binary -FROM golang:1.22.4-bookworm as stage1 +FROM quay.io/theauthgear/golang:1.22.4-noble as stage1 # Install build time C dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ - pkg-config \ - libicu-dev \ - libvips-dev \ - libmagic-dev \ - && rm -rf /var/lib/apt/lists/* + pkg-config \ + libicu-dev \ + libvips-dev \ + libmagic-dev \ + && rm -rf /var/lib/apt/lists/* # In order to build a Go program that uses private modules in Docker, # we need the following @@ -60,21 +60,21 @@ COPY ./portal . RUN npm run build # Stage 4: Prepare the actual fs we use to run the program -FROM debian:bookworm-slim +FROM ubuntu:noble ARG GIT_HASH WORKDIR /app -# /etc/mime.types (mime-support) +# /etc/mime.types (media-types) # /usr/share/ca-certificates/*/* (ca-certificates) # /usr/share/zoneinfo/ (tzdata) RUN apt-get update && apt-get install -y --no-install-recommends \ - libicu-dev \ - libvips-dev \ - libmagic-dev \ - libmagic-mgc \ - ca-certificates \ - mime-support \ - tzdata \ - && rm -rf /var/lib/apt/lists/* + libicu-dev \ + libvips-dev \ + libmagic-dev \ + libmagic-mgc \ + ca-certificates \ + media-types \ + tzdata \ + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations