chore: repo 정리 — entrypoint.sh 추가, runtime state gitignore

- entrypoint.sh: 첫 부팅 시 assign_teams.py 자동 실행 (시드)
- Dockerfile: ENTRYPOINT 적용, DATA_PATH=/app/data/hackathon.json
- hackathon.json (root) 삭제 — data/ 디렉터리로 이전 (gitignore)
- teams.md 추적 해제 (assign_teams.py가 매번 재생성)
- results_*.json + data/ gitignore 추가
- .env.example 삭제 (compose에 ADMIN_TOKEN 박제, .env 불필요)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
th-kim0823
2026-04-27 21:31:29 +09:00
parent 447f067ae9
commit addde1a0ea
6 changed files with 30 additions and 274 deletions

View File

@@ -10,15 +10,11 @@ ENV TZ=Asia/Seoul
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py assign_teams.py ./
COPY hackathon.json ./
COPY app.py assign_teams.py entrypoint.sh ./
RUN chmod +x /app/entrypoint.sh
EXPOSE 8501
ENV DATA_PATH=/app/hackathon.json
ENV DATA_PATH=/app/data/hackathon.json
CMD ["streamlit", "run", "app.py", \
"--server.address=0.0.0.0", \
"--server.port=8501", \
"--server.headless=true", \
"--browser.gatherUsageStats=false"]
ENTRYPOINT ["/app/entrypoint.sh"]