mod login signin design
This commit is contained in:
@@ -20,19 +20,21 @@ ENV FLUTTER_HOME=/usr/local/flutter
|
||||
ENV PATH="${FLUTTER_HOME}/bin:${PATH}"
|
||||
|
||||
RUN git clone https://github.com/flutter/flutter.git ${FLUTTER_HOME} -b stable --depth 1 && \
|
||||
flutter config --enable-web && \
|
||||
flutter precache --web
|
||||
flutter config --enable-web --no-analytics && \
|
||||
flutter doctor -v
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy app files
|
||||
COPY pubspec.yaml pubspec.lock ./
|
||||
|
||||
# Run pub get (downloads web dependencies without needing gradle)
|
||||
RUN flutter pub get
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build web app
|
||||
# Build web app (downloads web artifacts on-demand without gradle)
|
||||
RUN flutter build web --release --web-renderer canvaskit
|
||||
|
||||
# Production stage - Nginx
|
||||
|
||||
Reference in New Issue
Block a user