-
Notifications
You must be signed in to change notification settings - Fork 2
[AI] SISC-195 계산 프로세스 피쳐 코드 수정 리펙토링 #201
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
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
fab65c8
[AI] SISC-195 계산 프로세스 피쳐 코드 수정 리펙토링
twq110 865bf59
aa
twq110 4f081ce
[AI] SISC-195 [FEAT] 시그널 모델 기본구조 작성
twq110 3a5288e
[AI] SISC-195 [FIX] 시그널 모델 재구현
twq110 adbfaa5
[AI] SISC-195 [FIX] 변수 타입 불일치 수정
twq110 66b4b0c
[AI] SISC-195 [FIX] 크롤링 코드 수정
twq110 60bdc68
[AI] SISC-195 [REFACT] xai 리포트 수정 및 데이터 로드 방식 수정
twq110 e005cb9
[AI] SISC-195 [DOCS] 스키마 변경 사항 업데이트
twq110 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| FROM python:3.12-slim | ||
| FROM python:3.10-slim | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # 1. requirements 설치 (컨텍스트 = AI 이므로, AI/requirements.txt 기준) | ||
| # 1. 라이브러리 설치 | ||
| COPY requirements.txt /app/requirements.txt | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| # 2. AI 디렉토리 내용물을 /app 루트에 그대로 복사 | ||
| # => /app/libs/core/pipeline.py 이런 구조가 됨 | ||
| # 2. 소스 코드 복사 | ||
| COPY . /app | ||
|
|
||
| # 3. 파이썬 모듈 검색 경로에 /app 추가 | ||
| # 3. 환경 변수 설정 | ||
| ENV PYTHONPATH=/app | ||
|
|
||
| # 4. libs.core.pipeline 모듈을 "패키지로" 실행 | ||
| CMD ["python", "-m", "libs.core.pipeline"] | ||
| # 4. 실행 명령어 (데이터 수집 -> 분석 루틴 순차 실행) | ||
| CMD ["/bin/sh", "-c", "python modules/data_collector/run.py && python pipelines/daily_routine.py"] | ||
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,34 @@ | ||
| { | ||
| "tickers": [ | ||
| "NVDA", | ||
| "TSLA", | ||
| "MSFT", | ||
| "MU", | ||
| "AAPL", | ||
| "AMZN", | ||
| "GOOGL", | ||
| "AMD", | ||
| "META", | ||
| "PLTR", | ||
| "GOOG", | ||
| "AVGO", | ||
| "WMT", | ||
| "INTC", | ||
| "LLY", | ||
| "ORCL", | ||
| "PANW", | ||
| "BKNG", | ||
| "JPM", | ||
| "XOM", | ||
| "AMAT", | ||
| "V", | ||
| "WDC", | ||
| "NFLX", | ||
| "APP", | ||
| "CRWD", | ||
| "JNJ", | ||
| "CRM", | ||
| "BAC", | ||
| "COIN" | ||
| ] | ||
| } |
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
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.
컨테이너가 root 권한으로 실행됩니다
현재 Dockerfile에는
USER설정이 없어 기본 root로 실행됩니다. 운영 환경 기준으로 non-root 실행 전환이 필요합니다.제안 수정안
📝 Committable suggestion
🧰 Tools
🪛 Trivy (0.69.1)
[error] 1-1: Image user should not be 'root'
Specify at least 1 USER command in Dockerfile with non-root user as argument
Rule: DS-0002
Learn more
(IaC/Dockerfile)
🤖 Prompt for AI Agents