forked from baron/baron-sso
icon 깨짐 방지
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# 1단계: Flutter 웹 애플리케이션 빌드
|
# 1단계: Flutter 웹 애플리케이션 빌드
|
||||||
# 신뢰할 수 있는 출처의 특정 Flutter 버전 사용
|
# 신뢰할 수 있는 출처의 특정 Flutter 버전 사용
|
||||||
FROM ghcr.io/cirruslabs/flutter:stable AS builder
|
FROM ghcr.io/cirruslabs/flutter:stable AS builder
|
||||||
|
# ENV RUN_FLUTTER_AS_ROOT=true
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -12,7 +13,7 @@ RUN flutter pub get
|
|||||||
COPY frontend/ .
|
COPY frontend/ .
|
||||||
|
|
||||||
# 웹 애플리케이션 빌드
|
# 웹 애플리케이션 빌드
|
||||||
RUN flutter build web --release
|
RUN flutter build web --release --no-tree-shake-icons
|
||||||
|
|
||||||
# 2단계: 빌드된 파일들을 Nginx로 서빙
|
# 2단계: 빌드된 파일들을 Nginx로 서빙
|
||||||
# 경량의 공식 Nginx 이미지 사용
|
# 경량의 공식 Nginx 이미지 사용
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
# Stage 1: Build Flutter
|
# Stage 1: Build Flutter
|
||||||
FROM ghcr.io/cirruslabs/flutter:stable AS build
|
FROM ghcr.io/cirruslabs/flutter:stable AS build
|
||||||
|
# ENV RUN_FLUTTER_AS_ROOT=true
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
# Get dependencies and build for web
|
# Get dependencies and build for web
|
||||||
RUN flutter pub get
|
RUN flutter pub get
|
||||||
RUN touch .env
|
RUN touch .env
|
||||||
RUN flutter build web --release
|
RUN flutter build web --release --no-tree-shake-icons
|
||||||
|
|
||||||
# Stage 2: Serve with Nginx
|
# Stage 2: Serve with Nginx
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
<title>frontend</title>
|
<title>frontend</title>
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="flutter_bootstrap.js" async></script>
|
<script src="flutter_bootstrap.js" async></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user