wing-ops/prediction/opendrift/dockerfile
jeonghyo.k b601edd741 feat(prediction): flyTo 완료 후 자동 재생 + OpenDrift Docker 설정 추가
- MapView: flyToIncident/onIncidentFlyEnd props 추가, moveend 이벤트 후 콜백 호출
- OilSpillView: 사고 지점 변경 시 flyTo 완료 후 재생(pendingPlayRef), 동일 지점은 즉시 재생
- opendrift/config.py: STORAGE_BASE 환경변수로 스토리지 경로 설정
- opendrift/dockerfile, .dockerignore 추가
- opendrift/createKmaImage.py 제거

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 18:46:15 +09:00

22 lines
608 B
Plaintext

FROM opendrift/opendrift:latest
WORKDIR /app
# gunicorn 설치 추가
RUN pip install fastapi uvicorn gunicorn
# 결과 데이터 저장 폴더 추가
RUN mkdir -p /app/result
COPY . .
EXPOSE 5003
# gunicorn으로 실행
CMD ["gunicorn", "api:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:5003"]
## 빌드 명령어
# docker build -t opendrift-api .
## 실행 명령어 (로컬 데이터 폴더를 컨테이너의 /storage로 마운트)
# docker run -d -p 5003:5003 -v /devdata/services/prediction/data:/storage -e STORAGE_BASE=/storage --name opendrift-api opendrift-api