Spaces:
Build error
Build error
David Li commited on
Commit ·
ef1ebb7
1
Parent(s): 9bf1940
fix: try again
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -3,12 +3,11 @@ 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 |
-
RUN chmod 777 server
|
| 8 |
|
| 9 |
# copy server file to basic image to run the app
|
| 10 |
FROM alpine:latest
|
| 11 |
WORKDIR /app
|
| 12 |
-
COPY --from=builder /app/
|
| 13 |
|
| 14 |
-
CMD [ "
|
|
|
|
| 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 alpine:latest
|
| 10 |
WORKDIR /app
|
| 11 |
+
COPY --from=builder /app/dart_off_server .
|
| 12 |
|
| 13 |
+
CMD [ "/app/dart_off_server" ]
|