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
6
6
WORKDIR /app
7
7
COPY ./functions_framework/pubspec.yaml /app/functions_framework/
8
8
COPY ./functions_framework_builder/pubspec.yaml /app/functions_framework_builder/
9
+ COPY ./gcp/pubspec.yaml /app/gcp/
9
10
COPY ./integration_test/pubspec.yaml /app/integration_test/
10
11
11
12
WORKDIR /app/integration_test
@@ -20,7 +21,10 @@ RUN dart pub run build_runner build --delete-conflicting-outputs
20
21
RUN dart compile exe bin/server.dart -o bin/server
21
22
22
23
# #######################
24
+ # Build minimal serving image from AOT-compiled `/server` and required system
25
+ # libraries and configuration files stored in `/runtime/` from the build stage.
23
26
FROM 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/
25
29
EXPOSE 8080
26
30
ENTRYPOINT ["/app/bin/server" ]
You can’t perform that action at this time.
0 commit comments