Skip to content

Commit

Permalink
fix: install flutter ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Feb 27, 2025
1 parent 743c0e3 commit d0e0d9d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Applications/AdminApi/src/AdminApi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,20 @@ RUN dotnet publish /p:ContinuousIntegrationBuild=true /p:UseAppHost=false --no-r
RUN dotnet publish /p:ContinuousIntegrationBuild=true --configuration Release --output /app/publish/health "/src/Applications/HealthCheck/src/HealthCheck.csproj"

#### Build Flutter Admin UI ####
FROM ghcr.io/cirruslabs/flutter:3.27.3 AS flutter-build-env
FROM ghcr.io/cirruslabs/android-sdk:34

USER root

ENV FLUTTER_HOME=${HOME}/sdks/flutter
ENV FLUTTER_VERSION=3.29.0
ENV FLUTTER_ROOT=$FLUTTER_HOME
ENV PATH ${PATH}:${FLUTTER_HOME}/bin:${FLUTTER_HOME}/bin/cache/dart-sdk/bin

RUN git clone --depth 1 --branch ${FLUTTER_VERSION} https://github.com/flutter/flutter.git ${FLUTTER_HOME}

RUN yes | flutter doctor --android-licenses \
&& flutter doctor \
&& chown -R root:root ${FLUTTER_HOME}

COPY Applications/AdminUi /src
WORKDIR /src
Expand Down

0 comments on commit d0e0d9d

Please sign in to comment.