mirror of
https://github.com/flutter/samples.git
synced 2025-11-12 15:58:32 +00:00
This reverts commit fc6222ebc8.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
# Use latest stable channel SDK.
|
||||
FROM dart:stable AS build
|
||||
|
||||
# Resolve app dependencies.
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN dart pub get
|
||||
|
||||
# AOT compile app.
|
||||
RUN dart compile exe bin/server.dart -o bin/server
|
||||
|
||||
# Build minimal serving image from AOT-compiled `/server`
|
||||
# and the pre-built AOT-runtime in the `/runtime/` directory of the base image.
|
||||
FROM scratch
|
||||
COPY --from=build /runtime/ /
|
||||
COPY --from=build /app/bin/server /app/bin/
|
||||
|
||||
# Start server.
|
||||
EXPOSE 8080
|
||||
CMD ["/app/bin/server"]
|
||||
Reference in New Issue
Block a user