Skip to content

Instantly share code, notes, and snippets.

@zolotyh
Created August 8, 2019 02:13
Show Gist options
  • Save zolotyh/016024c9e1484db6113ad0e53b9acb68 to your computer and use it in GitHub Desktop.
Save zolotyh/016024c9e1484db6113ad0e53b9acb68 to your computer and use it in GitHub Desktop.
FROM google/dart:2.4
WORKDIR /app
ADD pubspec.* /app/
ENV PATH="$PATH":"$HOME/.pub-cache/bin"
RUN pub global activate webdev
RUN pub get
ADD . /app
RUN pub get --offline
EXPOSE 8080/tcp
CMD []
ENTRYPOINT ["/root/.pub-cache/bin/webdev", "serve"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment