Add Dockerfile and imagePullSecrets for Harbor
CI - Lint & Test / lint-and-test (push) Successful in 35s
Details
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:
parent
7fe4a38674
commit
d5ed771e3b
|
|
@ -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"]
|
||||
|
|
@ -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에서 자동 업데이트
|
||||
|
|
|
|||
Loading…
Reference in New Issue