File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ FROM dart:stable AS build
66WORKDIR /app
77COPY ./functions_framework/pubspec.yaml /app/functions_framework/
88COPY ./functions_framework_builder/pubspec.yaml /app/functions_framework_builder/
9+ COPY ./gcp/pubspec.yaml /app/gcp/
910COPY ./integration_test/pubspec.yaml /app/integration_test/
1011
1112WORKDIR /app/integration_test
@@ -20,7 +21,10 @@ RUN dart pub run build_runner build --delete-conflicting-outputs
2021RUN dart compile exe bin/server.dart -o bin/server
2122
2223# #######################
24+ # Build minimal serving image from AOT-compiled `/server` and required system
25+ # libraries and configuration files stored in `/runtime/` from the build stage.
2326FROM scratch
24- COPY --from=0 /app/integration_test/bin/server /app/bin/server
27+ COPY --from=build /runtime/ /
28+ COPY --from=build /app/integration_test/bin/server /app/bin/
2529EXPOSE 8080
2630ENTRYPOINT ["/app/bin/server" ]
You can’t perform that action at this time.
0 commit comments