Add Dockerfile and imagePullSecrets for Harbor
CI - Lint & Test / lint-and-test (push) Successful in 35s Details

- 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 <noreply@anthropic.com>
This commit is contained in:
Cloud User 2026-02-27 13:31:59 +09:00
parent 7fe4a38674
commit d5ed771e3b
2 changed files with 14 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -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"]

View File

@ -15,6 +15,8 @@ spec:
labels: labels:
app: mlops-serving app: mlops-serving
spec: spec:
imagePullSecrets:
- name: harbor-secret
containers: containers:
- name: serving - name: serving
image: harbor.inje-private.com/mlops/mlops-serving:latest # CI에서 자동 업데이트 image: harbor.inje-private.com/mlops/mlops-serving:latest # CI에서 자동 업데이트