From 5f1fb992b0a7a0ea1cf289be04c794e5b409b9fe Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 14 Jan 2017 19:25:33 -0500 Subject: [PATCH] Updated Docker --- Dockerfile | 5 +++-- bin/multi_server.dart | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e19083f..8674ab8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,5 +27,6 @@ RUN pub build # Set environment, start multi-server :) ENV ANGEL_ENV=production -EXPOSE 80 -RUN dart bin/multi_server.dart \ No newline at end of file +EXPOSE 3000 +ENTRYPOINT ["dart"] +CMD ["bin/multi_server.dart"] \ No newline at end of file diff --git a/bin/multi_server.dart b/bin/multi_server.dart index 688fd5e..7744ea0 100644 --- a/bin/multi_server.dart +++ b/bin/multi_server.dart @@ -30,7 +30,7 @@ main() async { }); var host = InternetAddress.ANY_IP_V4; - var port = 80; + var port = 3000; var server = await app.startServer(host, port); print('Listening at http://${server.address.address}:${server.port}'); }