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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
ONBUILD ADD . /app/src
FROM ubuntu
FROM ubuntu AS build
MAINTAINER SvenDowideit@home.org.au
RUN cd /tmp
EXPOSE 5900
ENV myName John Doe
COPY hom* /mydir/
VOLUME /myvol
USER daemon
WORKDIR /a
HEALTHCHECK CMD echo "foo"
HEALTHCHECK NONE
LABEL version="1.0"
ENTRYPOINT ["top", "-b"]
ARG user1
SHELL ["powershell", "-command"]
STOPSIGNAL signal
----------------------------------------------------
[
["instruction", [
["keyword", "ONBUILD"],
["keyword", "ADD"],
" . /app/src"
]],
["instruction", [
["keyword", "FROM"],
" ubuntu"
]],
["instruction", [
["keyword", "FROM"],
" ubuntu ",
["keyword", "AS"],
" build"
]],
["instruction", [
["keyword", "MAINTAINER"],
" SvenDowideit@home.org.au"
]],
["instruction", [
["keyword", "RUN"],
" cd /tmp"
]],
["instruction", [
["keyword", "EXPOSE"],
" 5900"
]],
["instruction", [
["keyword", "ENV"],
" myName John Doe"
]],
["instruction", [
["keyword", "COPY"],
" hom* /mydir/"
]],
["instruction", [
["keyword", "VOLUME"],
" /myvol"
]],
["instruction", [
["keyword", "USER"],
" daemon"
]],
["instruction", [
["keyword", "WORKDIR"],
" /a"
]],
["instruction", [
["keyword", "HEALTHCHECK"],
["keyword", "CMD"],
" echo ",
["string", "\"foo\""]
]],
["instruction", [
["keyword", "HEALTHCHECK"],
["keyword", "NONE"]
]],
["instruction", [
["keyword", "LABEL"],
" version=",
["string", "\"1.0\""]
]],
["instruction", [
["keyword", "ENTRYPOINT"],
" [",
["string", "\"top\""],
", ",
["string", "\"-b\""],
"]"
]],
["instruction", [
["keyword", "ARG"],
" user1"
]],
["instruction", [
["keyword", "SHELL"],
" [",
["string", "\"powershell\""],
", ",
["string", "\"-command\""],
"]"
]],
["instruction", [
["keyword", "STOPSIGNAL"],
" signal"
]]
]
----------------------------------------------------
Checks for keywords.