Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ easily portable between systems, regardless of the programming language they are
implemented in. We recommend Engine implementors use a `Dockerfile` to automate
the builds of these images. The `Dockerfile` must follow these specifications:

* The images must specify a `MAINTAINER`.
* The image must specify a `maintainer` `LABEL`:
* The `/code` must be declared as a `VOLUME`.
* The `WORKDIR` must be specified as `/code`
* A non-root user named `app` must be created with UID and GID 9000 and declared
Expand All @@ -325,21 +325,25 @@ the builds of these images. The `Dockerfile` must follow these specifications:
Here is an example of a `Dockerfile` that follows the specifications for an engine written in Node.js:

```
FROM node
FROM node:7.7-alpine

MAINTAINER Michael R. Bernstein
LABEL maintainer "Your Name <hello@example.com>"

RUN useradd -u 9000 -r -s /bin/false app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/

RUN npm install glob
RUN npm install

WORKDIR /code
RUN adduser -u 9000 -D app
COPY . /usr/src/app
RUN chown -R app:app /usr/src/app

USER app

VOLUME /code
WORKDIR /code

CMD ["/usr/src/app/bin/fixme"]
CMD ["/usr/src/app/bin/your-engine"]
```

## Naming convention
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1