diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b8c8b000789182322dd90a02b6f7ff900f1cfb0..12aff3116953b4ddd4a3b6bb2419268c49a89c99 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,6 +79,7 @@ default:
     KANIKO_ARGS:
       --skip-unused-stages=true
       --context $CI_PROJECT_DIR
+      --build-arg REGISTRY=git.cccv.de/crews/hub/dependency_proxy/containers/
   before_script:
     - |
       cat > /kaniko/.docker/config.json <<EOF
diff --git a/Dockerfile b/Dockerfile
index 33e08b90d47966a4294118b506403cf7b831f25d..2a9d261f1fcf632853cca912f9011cab9f0a23ad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
-FROM git.cccv.de/crews/hub/dependency_proxy/containers/python:3.13-bookworm as base
+ARG REGISTRY=""
+FROM ${REGISTRY}python:3.13-bookworm as base
 
 ARG DEVELOPMENT=False
 
@@ -80,7 +81,7 @@ RUN export DJANGO_SETTINGS_MODULE='hub.settings.build' && \
 
 ######################################### [nginx] #############################
 
-FROM git.cccv.de/crews/hub/dependency_proxy/containers/nginx:1.25-alpine-slim as nginx-forwarder
+FROM ${REGISTRY}nginx:1.25-alpine-slim as nginx-forwarder
 ENV APP_SOCKET="/run/hub/app.sock"
 ENV SCRIPT_NAME=""