feat: deploy to AWS o2o-platform-plagiarism via GitHub Actions

main push builds the runtime image (linux/amd64), pushes it to ECR
plagiarism-api:<sha> and runs SSM Deploy-plagiarism, which swaps the
container and rolls back if it is not healthy. Python and pip versions
are pinned to the King production image so the joblib model keeps loading.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
HyeongBaeYangandClaude Opus 5.5 committed 2026-10-27 13:57:16 +09:00
1 parent 03d500d67c
commit f0e657b6d4
3 files changed
+118 -3

No files matched your search

+4 -3
View File
@@ -1,4 +1,5 @@
FROM python:3.13-slim AS base
# 3.13.2: King 서버 운영 이미지와 같은 Python (constraints.txt와 함께 joblib 모델 호환 유지)
FROM python:3.13.2-slim AS base
WORKDIR /app
@@ -14,8 +15,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY requirements.txt constraints.txt ./
RUN pip install -r requirements.txt -c constraints.txt
COPY app ./app
COPY data ./data