forked from furier/websync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (32 loc) · 660 Bytes
/
Dockerfile
File metadata and controls
37 lines (32 loc) · 660 Bytes
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
#
# Select Base image, we choose a Nodejs base
# because it has already all the ingredients for
# our Nodejs app
#
FROM dockerfile/nodejs
#
# Bundle our app source with the container, we
# could also be fetching the code from a git
# repo, or really anything else.
#
ADD ./dist /src
#
# Install app dependencies - Got to install them
# all! :)
#
RUN cd /src; npm install
#
# Which ports you want to be exposing from this
# container
#
EXPOSE 3000
#
# Specify the runtime (node) and the source to
# be run
#
CMD ["node", "/src/server.js"]
#
# Note: You can do pretty much anything you
# would do in a command line, using the `RUN`
# prefix
#