File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -325,21 +325,25 @@ the builds of these images. The `Dockerfile` must follow these specifications:
325325Here is an example of a ` Dockerfile ` that follows the specifications for an engine written in Node.js:
326326
327327```
328- FROM node
328+ FROM node:7.7-alpine
329329
330- MAINTAINER Michael R. Bernstein
330+ LABEL maintainer "Your Name <hello@example.com>"
331331
332- RUN useradd -u 9000 -r -s /bin/false app
332+ WORKDIR /usr/src/app
333+ COPY package.json /usr/src/app/
333334
334- RUN npm install glob
335+ RUN npm install
335336
336- WORKDIR /code
337+ RUN adduser -u 9000 -D app
337338COPY . /usr/src/app
339+ RUN chown -R app:app /usr/src/app
338340
339341USER app
342+
340343VOLUME /code
344+ WORKDIR /code
341345
342- CMD ["/usr/src/app/bin/fixme "]
346+ CMD ["/usr/src/app/bin/your-engine "]
343347```
344348
345349## Naming convention
You can’t perform that action at this time.
0 commit comments