FROM git.hydrar.de/hydra/flutter AS build-env # Copy files to container and build RUN mkdir /app/ COPY . /app/ WORKDIR /app/ RUN flutter pub get RUN flutter build web # Create the run-time image FROM nginx:1.21.1-alpine COPY --from=build-env /app/build/web /usr/share/nginx/html