Skip to content

Instantly share code, notes, and snippets.

@pmundt
Created October 4, 2019 08:04
Show Gist options
  • Save pmundt/3edcc9fa2f7739921574023e0a2abb7b to your computer and use it in GitHub Desktop.
Save pmundt/3edcc9fa2f7739921574023e0a2abb7b to your computer and use it in GitHub Desktop.
Dockerfile for JIT compilation of server-side app
FROM google/dart
WORKDIR /app
ADD pubspec.* /app/
RUN pub get
ADD . /app
RUN pub get --offline
CMD []
ENTRYPOINT ["/usr/bin/dart", "bin/server.dart"]
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment