forked from baron/baron-sso
userfront dev모드 구동 모드 run으로 변경
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
FROM ghcr.io/cirruslabs/flutter:3.38.0 AS dev
|
||||
ENV RUN_FLUTTER_AS_ROOT=true
|
||||
WORKDIR /workspace
|
||||
COPY scripts ./scripts
|
||||
COPY locales ./locales
|
||||
COPY userfront ./userfront
|
||||
WORKDIR /workspace/userfront
|
||||
RUN flutter pub get
|
||||
EXPOSE 5000
|
||||
CMD ["sh", "./scripts/dev-server.sh"]
|
||||
|
||||
# Stage 1: Build Flutter
|
||||
FROM ghcr.io/cirruslabs/flutter:3.38.0 AS build
|
||||
ENV RUN_FLUTTER_AS_ROOT=true
|
||||
@@ -16,7 +27,7 @@ COPY userfront/scripts/optimize-web-build.mjs /work/scripts/optimize-web-build.m
|
||||
RUN node /work/scripts/optimize-web-build.mjs /work/build/web
|
||||
|
||||
# Stage 2: Serve with Nginx
|
||||
FROM alpine:3.23
|
||||
FROM alpine:3.23 AS production
|
||||
RUN apk add --no-cache nginx nginx-mod-http-brotli
|
||||
# Copy built assets
|
||||
COPY --from=optimize /work/build/web /usr/share/nginx/html
|
||||
|
||||
Reference in New Issue
Block a user