switch to ghcr base images in Dockerfiles

This commit is contained in:
Felix Kunde 2025-10-24 11:42:49 +02:00
parent 1af4c50ed0
commit 8cc99f1cc7
3 changed files with 9 additions and 13 deletions

View File

@ -1,4 +1,4 @@
ARG BASE_IMAGE=registry.opensource.zalan.do/library/alpine-3:latest
ARG BASE_IMAGE=ghcr.io/alpine-3:latest
FROM golang:1.25-alpine AS builder
ARG VERSION=latest

View File

@ -1,4 +1,4 @@
ARG BASE_IMAGE=registry.opensource.zalan.do/library/ubuntu-22.04:latest
ARG BASE_IMAGE=ghcr.io/ubuntu-22.04:latest
FROM ${BASE_IMAGE}
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"

View File

@ -1,4 +1,4 @@
ARG BASE_IMAGE=registry.opensource.zalan.do/library/python-3.11-slim:latest
ARG BASE_IMAGE=ghcr.io/python-3.11-slim:latest
ARG NODE_IMAGE=node:lts-alpine
FROM $NODE_IMAGE AS build
@ -15,18 +15,14 @@ LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
EXPOSE 8081
WORKDIR /app
RUN apt-get -qq -y update \
# https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
&& apt-get -qq -y install --no-install-recommends g++ libpq-dev python3-dev python3-distutils \
&& apt-get -qq -y clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
COPY start_server.sh .
RUN pip install -r requirements.txt
COPY requirements.txt start_server.sh ./
# Install dependencies for building psycopg2 from source as well
RUN dnf install libpq libpq-devel gcc -y \
&& pip install -r requirements.txt --no-cache-dir \
&& dnf remove libpq-devel gcc -y \
&& dnf clean all
COPY operator_ui operator_ui/
COPY --from=build /workdir/operator_ui/static/build/ operator_ui/static/build/
ARG VERSION=dev
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" operator_ui/__init__.py