Spaces:
Build error
Build error
David Li commited on
Commit ·
ee7679b
1
Parent(s): 8c19e68
fix: update main
Browse files- 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
|
| 7 |
|
| 8 |
# copy server file to basic image to run the app
|
| 9 |
FROM scratch
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
| 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"]
|