Skip to content

Commit 4918f34

Browse files
authored
chore: cleanup root Dockerfile (#407)
1 parent 31ee9ca commit 4918f34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM dart:stable AS build
66
WORKDIR /app
77
COPY ./functions_framework/pubspec.yaml /app/functions_framework/
88
COPY ./functions_framework_builder/pubspec.yaml /app/functions_framework_builder/
9+
COPY ./gcp/pubspec.yaml /app/gcp/
910
COPY ./integration_test/pubspec.yaml /app/integration_test/
1011

1112
WORKDIR /app/integration_test
@@ -20,7 +21,10 @@ RUN dart pub run build_runner build --delete-conflicting-outputs
2021
RUN 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.
2326
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/
2529
EXPOSE 8080
2630
ENTRYPOINT ["/app/bin/server"]

0 commit comments

Comments
 (0)