From 8d2f0e9d021c55f918fc91198f77e04aa3b0dab2 Mon Sep 17 00:00:00 2001 From: fredtma Date: Thu, 26 Sep 2019 09:09:01 +0200 Subject: [PATCH] Change Dockerfile to use latest dart image I generated an application with `angel init` When running the application in a docker container, I get the error. `file:///root/.pub-cache/hosted/pub.dartlang.org/angel_configuration-2.1.0/lib/angel_configuration.dart:62:1: Error: 'Future' expects 0 type arguments.` This is due to the fact that *angel_configuration.dart* does not import 'dart:async'. This works when using the latest dart version. [see](https://github.com/dart-lang/sdk/issues/26162) [see](https://github.com/dart-lang/sdk/issues/34384) [see](https://github.com/dart-lang/sdk/issues/34237) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9056deb..c84bc87e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM google/dart:2.0 +FROM google/dart:latest COPY ./ ./ @@ -11,4 +11,4 @@ RUN pub get # Set environment, start server ENV ANGEL_ENV=production EXPOSE 3000 -CMD dart bin/prod.dart \ No newline at end of file +CMD dart bin/prod.dart