switch to ghcr base images in Dockerfiles
This commit is contained in:
parent
1af4c50ed0
commit
8cc99f1cc7
|
|
@ -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
|
FROM golang:1.25-alpine AS builder
|
||||||
ARG VERSION=latest
|
ARG VERSION=latest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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}
|
FROM ${BASE_IMAGE}
|
||||||
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
ARG NODE_IMAGE=node:lts-alpine
|
||||||
|
|
||||||
FROM $NODE_IMAGE AS build
|
FROM $NODE_IMAGE AS build
|
||||||
|
|
@ -15,18 +15,14 @@ LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get -qq -y update \
|
COPY requirements.txt start_server.sh ./
|
||||||
# https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
|
# Install dependencies for building psycopg2 from source as well
|
||||||
&& apt-get -qq -y install --no-install-recommends g++ libpq-dev python3-dev python3-distutils \
|
RUN dnf install libpq libpq-devel gcc -y \
|
||||||
&& apt-get -qq -y clean \
|
&& pip install -r requirements.txt --no-cache-dir \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& dnf remove libpq-devel gcc -y \
|
||||||
|
&& dnf clean all
|
||||||
COPY requirements.txt .
|
|
||||||
COPY start_server.sh .
|
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
|
|
||||||
COPY operator_ui operator_ui/
|
COPY operator_ui operator_ui/
|
||||||
COPY --from=build /workdir/operator_ui/static/build/ operator_ui/static/build/
|
|
||||||
|
|
||||||
ARG VERSION=dev
|
ARG VERSION=dev
|
||||||
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" operator_ui/__init__.py
|
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" operator_ui/__init__.py
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue