diff --git a/SPEC.md b/SPEC.md index 291ddb2..e95387d 100644 --- a/SPEC.md +++ b/SPEC.md @@ -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 @@ -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 " -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 diff --git a/VERSION b/VERSION index 0d91a54..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.3.1