1
0
forked from baron/baron-sso

미사용 파일 제거

This commit is contained in:
2026-01-21 16:51:44 +09:00
parent 25b1dcfdaa
commit 493a9e4ecc
3 changed files with 0 additions and 107 deletions

View File

@@ -1,39 +0,0 @@
# ==========================================
# Baron SSO - Unified Environment Configuration
# ==========================================
# --- General System ---
APP_ENV=development
TZ=Asia/Seoul
# --- Infrastructure Ports ---
DB_PORT=5432
CLICKHOUSE_PORT_HTTP=8123
CLICKHOUSE_PORT_NATIVE=9000
BACKEND_PORT=3000
FRONTEND_PORT=5000
# --- Database Credentials (PostgreSQL) ---
DB_USER=baron
DB_PASSWORD=password
DB_NAME=baron_sso
# --- Backend Configuration ---
# Must be 32 bytes. Generate with `openssl rand -hex 32`
COOKIE_SECRET=super-secret-key-must-be-32-bytes!
REDIS_ADDR=redis:6379
# --- Frontend Configuration ---
# Descope Project ID (Required for Auth)
DESCOPE_PROJECT_ID=P2t...your_descope_project_id
DESCOPE_MANAGEMENT_KEY=your_descope_management_key_here
# --- Naver Cloud Services ---
NAVER_CLOUD_ACCESS_KEY=ncp_iam_...
NAVER_CLOUD_SECRET_KEY=ncp_iam_...
NAVER_CLOUD_SERVICE_ID=ncp:sms:kr:...:...
NAVER_SENDER_PHONE_NUMBER=...
# --- URLs for Proxy/Handoff ---
FRONTEND_URL=http://localhost:5000
BACKEND_URL=http://localhost:3000

View File

@@ -1,33 +0,0 @@
# 1단계: Go 애플리케이션 빌드
# 개발 환경과 일치하는 특정 Go 버전 사용
FROM golang:1.25-alpine AS builder
# 컨테이너 내부의 현재 작업 디렉토리 설정
WORKDIR /app
# go.mod 및 go.sum 파일 복사
COPY backend/go.mod backend/go.sum ./
# 모든 종속성 다운로드. go.mod 및 go.sum 파일이 변경되지 않으면 종속성은 캐시됩니다.
RUN go mod download
# 소스 코드 복사
COPY backend/ .
# Go 앱 빌드
# -ldflags="-w -s"는 디버그 정보를 제거하여 바이너리 크기를 줄입니다.
# CGO_ENABLED=0은 정적 빌드를 위해 CGO를 비활성화합니다.
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o /go/bin/server ./cmd/server
# 2단계: 최종 경량 이미지 생성
# 더 작고 안전한 환경을 위해 distroless 이미지 사용
FROM gcr.io/distroless/static-debian11
# 빌더 스테이지에서 빌드된 실행 파일만 복사
COPY --from=builder /go/bin/server /
# 외부 세계에 3000번 포트 노출
EXPOSE 3000
# 실행 파일을 실행하는 명령어
ENTRYPOINT ["/server"]

View File

@@ -1,35 +0,0 @@
# 1단계: Flutter 웹 애플리케이션 빌드
# 신뢰할 수 있는 출처의 특정 Flutter 버전 사용
FROM ghcr.io/cirruslabs/flutter:stable AS builder
# ENV RUN_FLUTTER_AS_ROOT=true
WORKDIR /app
# Docker 캐시를 활용하기 위해 pubspec 파일들을 먼저 복사
COPY frontend/pubspec.yaml frontend/pubspec.lock ./
RUN flutter pub get
# 나머지 프론트엔드 소스 코드 복사
COPY frontend/ .
# 웹 애플리케이션 빌드
RUN flutter build web --release --no-tree-shake-icons
# 2단계: 빌드된 파일들을 Nginx로 서빙
# 경량의 공식 Nginx 이미지 사용
FROM nginx:1.27-alpine
# 기본 Nginx 설정 파일 제거
RUN rm /etc/nginx/conf.d/default.conf
# 사용자 정의 Nginx 설정 (선택 사항이지만 라우팅 등을 위해 권장)
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
# 빌더 스테이지에서 빌드된 웹 파일들을 복사
COPY --from=builder /app/build/web /usr/share/nginx/html
# Nginx 서버를 위해 80번 포트 노출
EXPOSE 80
# Nginx를 포그라운드에서 시작
CMD ["nginx", "-g", "daemon off;"]