Skip to content

Commit 05d3331

Browse files
committed
Merge pull request #15 from codeclimate/dockerfile_example
Example Dockerfile
2 parents de03b0d + 898ecbc commit 05d3331

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

SPEC.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,24 @@ the builds of these images. The `Dockerfile` must follow these specifications:
198198
* The image must not include any `EXPOSE` directives
199199
* The image must not include any `ONBUILD` directives
200200

201-
Here is an example of a `Dockerfile` that follows the specifications for a Go program:
201+
Here is an example of a `Dockerfile` that follows the specifications for an engine written in Node.js:
202202

203203
```
204-
TODO Dockerfile EXAMPLE Here
204+
FROM node
205+
206+
MAINTAINER Michael R. Bernstein
207+
208+
RUN useradd -u 9000 -r -s /bin/false app
209+
210+
RUN npm install glob
211+
212+
WORKDIR /code
213+
COPY . /usr/src/app
214+
215+
USER app
216+
VOLUME /code
217+
218+
CMD ["/usr/src/app/bin/fixme"]
205219
```
206220

207221
## Resource Restrictions

0 commit comments

Comments
 (0)