platform/Dockerfile
fredtma 8d2f0e9d02
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)
2019-09-26 09:09:01 +02:00

14 lines
247 B
Docker

FROM google/dart:latest
COPY ./ ./
# Install dependencies, pre-build
RUN pub get
# Optionally build generaed sources.
# RUN pub run build_runner build
# Set environment, start server
ENV ANGEL_ENV=production
EXPOSE 3000
CMD dart bin/prod.dart