更新环境变量

This commit is contained in:
2026-01-21 10:40:34 +08:00
parent c54f76cd0c
commit bd0bc02f0d
7 changed files with 63 additions and 13 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# 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"]