forked from derbyjs/component-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 842 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 842 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
# BUILD-USING: docker build -t derbyjs/component-examples .
# RUN-USING: docker run -p 3330:3330 --name derby-component-examples --rm derbyjs/component-examples
# specify base docker image
FROM dockerfile/nodejs
# copy over dependencies
WORKDIR /var
RUN mkdir derby-component-examples
ADD package.json /var/derby-component-examples/
ADD server.coffee /var/derby-component-examples/
ADD index.coffee /var/derby-component-examples/
ADD index.html /var/derby-component-examples/
ADD index.styl /var/derby-component-examples/
# npm install all the things
WORKDIR /var/derby-component-examples
RUN npm install
# expose any ports we need
EXPOSE 3330
ENV PORT 3330
# the command that gets run inside the docker container
CMD ["/var/derby-component-examples/node_modules/coffee-script/bin/coffee", "/var/derby-component-examples/server.coffee"]