-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/34/painting-surface-data-simulator-service: 도장표면결함 시뮬레이터 기능 구현 #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
TaeHyunaivle
merged 17 commits into
main
from
feat/34/painting-surface-defect-simulator
Aug 27, 2025
+3,310
−71
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c7ff5aa
✨ feat: 도장 표면 결함 탐지 모델 일부 수정 및 시뮬레이터 구현
leewonwook 0196fcd
📝 docs : readme 수정
leewonwook 13796e3
✨ feat: 테스트 기능 추가가
leewonwook 9606a6c
🐛fix: requirements 오류 개선
leewonwook 9f1f7e8
🐳docker: 의존성 설치 변경
leewonwook d0f9aaa
Merge branch 'main' into feat/34/painting-surface-defect-simulator
leewonwook baf8d23
🔧ci-cd: cicd설정파일 수정
leewonwook 57e5e31
🐛 fix: 테스트 오류 해결
leewonwook 0644c79
🔧 fix: 테스트 설정 파일 추가
leewonwook 5dd34e5
🔧 fix: requirements 버전 수정
leewonwook 29d0951
🔧fix : requirements httpx 버전 수정
leewonwook 1213f00
✨ feat: spring 연결결
leewonwook bcab603
✨ feat: 프론트 연결
leewonwook 77967a3
Merge remote-tracking branch 'origin/main' into feat/34/painting-surf…
TaeHyunaivle d667b47
🔧 Fix: Change backend url port to match gateway
TaeHyunaivle 130c40f
➕ Fix: add ultralytics requirements
TaeHyunaivle fb5f424
🩹 Fix: Remove duplicate ultralytics pin
TaeHyunaivle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
services/painting-surface-data-simulator-service/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| FROM python:3.10 | ||
|
|
||
| # 작업 디렉토리 설정 | ||
| WORKDIR /app | ||
|
|
||
| # 시스템 패키지 업데이트 및 필요한 패키지 설치 | ||
| RUN apt-get update && apt-get install -y \ | ||
| gcc \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Python 의존성 파일 복사 및 설치 | ||
| COPY requirements.txt . | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| # 애플리케이션 코드 복사 | ||
| COPY app/ ./app/ | ||
|
|
||
| # 환경 설정 파일 복사 | ||
| COPY .env ./ | ||
|
|
||
| # 로그 디렉토리 생성 | ||
| RUN mkdir -p logs | ||
|
|
||
| # 포트 노출 | ||
| EXPOSE 8012 | ||
|
|
||
| # 환경 변수 설정 | ||
| ENV PYTHONPATH=/app | ||
|
|
||
| # 애플리케이션 실행 | ||
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8012"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not bake .env into the image (secrets exposure).
COPYing
.envinto the container risks leaking credentials (e.g., Azure keys) via image layers and registries. Pass env at runtime instead (docker run-e, Composeenv_file, or orchestrator secrets).Follow-ups:
.dockerignoreto exclude.env,logs/,__pycache__/,.pytest_cache/, etc.📝 Committable suggestion
🤖 Prompt for AI Agents