-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
73 lines (56 loc) · 2.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Install a dartchat as a docker container.
# Dartchat will be exposed via HTTP on port 3000.
#
# This file is hosted on github. Therefore you can start it in docker like this:
# > docker build -t dartchat github.com/anmunoz/dartchatv2
# > docker run -p 8080:3000 -d dartchat
FROM ubuntu:14.04.5
MAINTAINER Nane Kratzke <[email protected]>
# Install Dart SDK. Do not touch this until you know what you are doing.
# We do not install darteditor nor dartium because this is a server container.
# See: http://askubuntu.com/questions/377233/how-to-install-google-dart-in-ubuntu
RUN apt-get dist-upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
RUN apt-get install -y python-software-properties
RUN apt-add-repository ppa:hachre/dart
RUN apt-get update
RUN apt-get install -y dartsdk
# Install the dart server app.
# Comment in necessary parts of your dart package necessary to run "pub build"
# and necessary for your working app.
# Please check the following links to learn more about pub and build dart apps
# automatically.
# - https://www.dartlang.org/tools/pub/
# - https://www.dartlang.org/tools/pub/package-layout.html
# - https://www.dartlang.org/tools/pub/transformers
ADD pubspec.yaml /container/pubspec.yaml
# comment in if you need assets for working app
# ADD asset /container/asset
# comment in if you need benchmarks to run pub build
# ADD benchmark /container/benchmark
# comment in if you need docs to run pub build
# ADD doc /container/doc
# comment in if you need examples to run pub build
# ADD example /container/example
# comment in if you need test to run pub build
# ADD test /container/test
# comment in if you need tool to run pub build
# ADD tool /container/tool
# comment in if you need lib to run pub build
ADD lib /container/lib
ADD bin /container/bin
# comment out if you do not need web for working app
ADD web /container/web
# Build the app. Do not touch this.
WORKDIR /container
RUN pub build
# Expose port 3000.
EXPOSE 3000
# Entrypoint. Whenever the container is started the following command is executed in your container.
# In most cases it simply starts your app.
WORKDIR /container/bin
ENTRYPOINT ["dart"]
# Change this to your starting dart.
CMD ["dartchat.dart"]