Spaces:
Build error
Build error
Download Dockerfile from FriendlyUser/dart_off_server: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/FriendlyUser/dart_off_server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FriendlyUser/dart_off_server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FriendlyUser/dart_off_server/resolve/main/Dockerfile
394 Bytes
| FROM dart:2.19.1 as builder | |
| WORKDIR /app | |
| COPY pubspec.yaml pubspec.lock ./ | |
| RUN dart pub get | |
| COPY . . | |
| RUN dart compile exe bin/dart_off_server.dart -o /app/dart_off_server | |
| # copy server file to basic image to run the app | |
| FROM ubuntu:latest | |
| WORKDIR /app | |
| # RUN apk add --no-cache bash | |
| COPY --from=builder /app/dart_off_server /app/dart_off_server | |
| RUN ls -la | |
| RUN pwd | |
| CMD ["/app/dart_off_server"] | |