David Li commited on
Commit
29fe467
1 Parent(s): d53f561

fix: update docker file

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. test/cli_test.dart +1 -2
Dockerfile CHANGED
@@ -1,6 +1,7 @@
1
  FROM dart:2.19.1
2
-
3
  RUN dart pub get
 
4
  RUN dart compile exe bin/cli.dart
5
  RUN chmod +x bin/cli
6
  ENTRYPOINT [ "bin/cli" ]
 
1
  FROM dart:2.19.1
2
+ COPY pubspec.yaml pubspec.lock ./
3
  RUN dart pub get
4
+ COPY . ./
5
  RUN dart compile exe bin/cli.dart
6
  RUN chmod +x bin/cli
7
  ENTRYPOINT [ "bin/cli" ]
test/cli_test.dart CHANGED
@@ -1,8 +1,7 @@
1
- import 'package:cli/cli.dart';
2
  import 'package:test/test.dart';
3
 
4
  void main() {
5
  test('calculate', () {
6
- expect(calculate(), 42);
7
  });
8
  }
 
 
1
  import 'package:test/test.dart';
2
 
3
  void main() {
4
  test('calculate', () {
5
+
6
  });
7
  }