Spaces:
Build error
Build error
David Li commited on
Commit ·
b03b249
1
Parent(s): f1ead96
fix: try again
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -2,11 +2,16 @@ FROM dart:2.19.1 as builder
|
|
| 2 |
WORKDIR /app
|
| 3 |
COPY pubspec.yaml pubspec.lock ./
|
| 4 |
RUN dart pub get
|
|
|
|
| 5 |
COPY . .
|
| 6 |
-
RUN mkdir -p /dart/bin
|
| 7 |
RUN dart compile exe bin/cli.dart -o /dart/bin/dart_off_server
|
| 8 |
|
| 9 |
# copy server file to basic image to run the app
|
| 10 |
-
FROM
|
|
|
|
|
|
|
| 11 |
COPY --from=builder /dart/bin/dart_off_server /dart/bin/dart_off_server
|
|
|
|
|
|
|
|
|
|
| 12 |
CMD ["/dart/bin/dart_off_server"]
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
COPY pubspec.yaml pubspec.lock ./
|
| 4 |
RUN dart pub get
|
| 5 |
+
RUN mkdir -p /dart/bin/dart_off_server
|
| 6 |
COPY . .
|
|
|
|
| 7 |
RUN dart compile exe bin/cli.dart -o /dart/bin/dart_off_server
|
| 8 |
|
| 9 |
# copy server file to basic image to run the app
|
| 10 |
+
FROM alpine:latest
|
| 11 |
+
RUN apk add --no-cache bash
|
| 12 |
+
RUN mkdir -p /dart/bin
|
| 13 |
COPY --from=builder /dart/bin/dart_off_server /dart/bin/dart_off_server
|
| 14 |
+
RUN ls -la
|
| 15 |
+
RUN ls /dart/bin
|
| 16 |
+
RUN pwd /dart/bin
|
| 17 |
CMD ["/dart/bin/dart_off_server"]
|