fromis_9/Dockerfile
caadiq 255839a598 비디오 티저 썸네일 추출 기능 추가
- DB: album_teasers 테이블에 video_url 컬럼 추가
- 백엔드: 비디오 업로드 시 ffmpeg로 썸네일 추출 후 WebP 저장
- 백엔드: video_url에 MP4 URL 저장, 썸네일은 기존 URL 필드 사용
- 프론트엔드: 썸네일 이미지 표시, 클릭 시 video_url로 재생
- Flutter 앱: Teaser 모델에 videoUrl 필드 추가 및 비디오 재생 수정
- Docker: ffmpeg 설치 추가 (Dockerfile, docker-compose.dev.yml)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 11:59:58 +09:00

27 lines
593 B
Docker

# 빌드 스테이지 - 프론트엔드 빌드
FROM node:20-alpine AS frontend-builder
WORKDIR /frontend
COPY frontend/package*.json ./
RUN npm install
COPY frontend/ ./
RUN npm run build
# 프로덕션 스테이지
FROM node:20-alpine
WORKDIR /app
# ffmpeg 설치 (비디오 썸네일 추출용)
RUN apk add --no-cache ffmpeg
# 백엔드 의존성 설치
COPY backend/package*.json ./
RUN npm install --production
# 백엔드 파일 복사
COPY backend/ ./
# 프론트엔드 빌드 결과물 복사
COPY --from=frontend-builder /frontend/dist ./dist
EXPOSE 80
CMD ["node", "server.js"]