David Li commited on
Commit
ee7679b
·
1 Parent(s): 8c19e68

fix: update main

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -3,9 +3,10 @@ WORKDIR /app
3
  COPY pubspec.yaml pubspec.lock ./
4
  RUN dart pub get
5
  COPY . .
6
- RUN dart compile exe bin/cli.dart -o /dart/bin/dart_off_server
7
 
8
  # copy server file to basic image to run the app
9
  FROM scratch
10
- COPY --from=builder /dart/bin/dart_off_server /dart/bin/dart_off_server
11
- ENTRYPOINT ["/dart/bin/dart_off_server"]
 
 
3
  COPY pubspec.yaml pubspec.lock ./
4
  RUN dart pub get
5
  COPY . .
6
+ RUN dart compile exe bin/cli.dart -o dart_off_server
7
 
8
  # copy server file to basic image to run the app
9
  FROM scratch
10
+ WORKDIR /app
11
+ COPY --from=builder /app/dart_off_server /app/dart_off_server
12
+ ENTRYPOINT ["/app/dart_off_server"]