프론트엔드 추가 및 자동매매 로직 개선:
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m42s
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m42s
- Svelte 기반 프론트엔드 프로젝트 초기 설정 추가 (`vite`, `tailwindcss` 등 포함). - "자동매매" 주요 상태 및 규칙 관리 페이지 구현. - 1차/2차 손절 및 익절 조건 평가 로직 추가(`calcStopTargets`, `evalExitReason` 등). - 포지션 상세 로그 및 WebSocket 기반 실시간 로그 스트림 추가. - API 서비스 및 Frontend 간 Proxy 설정(Vite 서버). - 세션 체크를 위한 `CheckSession` 핸들러 추가.
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,4 +1,15 @@
|
||||
# ── 빌드 스테이지 ──────────────────────────────────────────
|
||||
# ── 프론트엔드 빌드 스테이지 ─────────────────────────────────
|
||||
FROM node:22-alpine AS frontend
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY frontend/package.json frontend/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY frontend/ .
|
||||
RUN npm run build
|
||||
|
||||
# ── Go 빌드 스테이지 ─────────────────────────────────────────
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
@@ -32,6 +43,9 @@ COPY --from=builder /app/templates/ templates/
|
||||
COPY --from=builder /app/static/ static/
|
||||
COPY --from=builder /app/CORPCODE.xml .
|
||||
|
||||
# 프론트엔드 빌드 결과물 복사
|
||||
COPY --from=frontend /app/build frontend/build/
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
# .env 파일은 컨테이너 실행 시 마운트하거나 환경변수로 주입
|
||||
|
||||
Reference in New Issue
Block a user