Files
kuaijian_service/Dockerfile
2026-01-21 10:40:34 +08:00

17 lines
392 B
Docker

# Use latest stable channel SDK.
FROM dart:3.5.4 AS build
LABEL qmqz=admin@ipayl.com
# Resolve app dependencies.
WORKDIR /app
COPY pubspec.* ./
RUN export PUB_HOSTED_URL=https://pub.flutter-io.cn && dart pub get
ADD bin /app/bin
RUN dart compile exe bin/main.dart -o bin/server
FROM scratch
COPY --from=build /runtime/ /
COPY --from=build /app/bin/server /app/bin/
CMD ["/app/bin/server"]