From d5ed771e3b3545023dd6ee29ea57051f89a754dd Mon Sep 17 00:00:00 2001 From: Cloud User Date: Fri, 27 Feb 2026 13:31:59 +0900 Subject: [PATCH] Add Dockerfile and imagePullSecrets for Harbor - Add Dockerfile for mlops-serving image build - Add imagePullSecrets to deployment manifest - Gitea secrets (REGISTRY_USER, REGISTRY_PASSWORD) registered Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 12 ++++++++++++ manifests/deployment.yaml | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a5d7528 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.10-slim + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY src/ ./src/ + +EXPOSE 8080 + +CMD ["python", "-m", "src.train"] diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index b944d5c..2dd3f07 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -15,6 +15,8 @@ spec: labels: app: mlops-serving spec: + imagePullSecrets: + - name: harbor-secret containers: - name: serving image: harbor.inje-private.com/mlops/mlops-serving:latest # CI에서 자동 업데이트