1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var argument_1 = require("./argument");
|
4 | exports.Argument = argument_1.Argument;
|
5 | var jsonArgument_1 = require("./jsonArgument");
|
6 | exports.JSONArgument = jsonArgument_1.JSONArgument;
|
7 | const comment_1 = require("./comment");
|
8 | exports.Comment = comment_1.Comment;
|
9 | const parser_1 = require("./parser");
|
10 | var flag_1 = require("./flag");
|
11 | exports.Flag = flag_1.Flag;
|
12 | const instruction_1 = require("./instruction");
|
13 | exports.Instruction = instruction_1.Instruction;
|
14 | var line_1 = require("./line");
|
15 | exports.Line = line_1.Line;
|
16 | const parserDirective_1 = require("./parserDirective");
|
17 | exports.ParserDirective = parserDirective_1.ParserDirective;
|
18 | var property_1 = require("./property");
|
19 | exports.Property = property_1.Property;
|
20 | var variable_1 = require("./variable");
|
21 | exports.Variable = variable_1.Variable;
|
22 | var add_1 = require("./instructions/add");
|
23 | exports.Add = add_1.Add;
|
24 | const arg_1 = require("./instructions/arg");
|
25 | exports.Arg = arg_1.Arg;
|
26 | const cmd_1 = require("./instructions/cmd");
|
27 | exports.Cmd = cmd_1.Cmd;
|
28 | const copy_1 = require("./instructions/copy");
|
29 | exports.Copy = copy_1.Copy;
|
30 | const entrypoint_1 = require("./instructions/entrypoint");
|
31 | exports.Entrypoint = entrypoint_1.Entrypoint;
|
32 | const env_1 = require("./instructions/env");
|
33 | exports.Env = env_1.Env;
|
34 | const from_1 = require("./instructions/from");
|
35 | exports.From = from_1.From;
|
36 | const healthcheck_1 = require("./instructions/healthcheck");
|
37 | exports.Healthcheck = healthcheck_1.Healthcheck;
|
38 | var jsonInstruction_1 = require("./jsonInstruction");
|
39 | exports.JSONInstruction = jsonInstruction_1.JSONInstruction;
|
40 | var label_1 = require("./instructions/label");
|
41 | exports.Label = label_1.Label;
|
42 | var modifiableInstruction_1 = require("./modifiableInstruction");
|
43 | exports.ModifiableInstruction = modifiableInstruction_1.ModifiableInstruction;
|
44 | var onbuild_1 = require("./instructions/onbuild");
|
45 | exports.Onbuild = onbuild_1.Onbuild;
|
46 | var propertyInstruction_1 = require("./propertyInstruction");
|
47 | exports.PropertyInstruction = propertyInstruction_1.PropertyInstruction;
|
48 | var shell_1 = require("./instructions/shell");
|
49 | exports.Shell = shell_1.Shell;
|
50 | var stopsignal_1 = require("./instructions/stopsignal");
|
51 | exports.Stopsignal = stopsignal_1.Stopsignal;
|
52 | var user_1 = require("./instructions/user");
|
53 | exports.User = user_1.User;
|
54 | var volume_1 = require("./instructions/volume");
|
55 | exports.Volume = volume_1.Volume;
|
56 | const workdir_1 = require("./instructions/workdir");
|
57 | exports.Workdir = workdir_1.Workdir;
|
58 | var Keyword;
|
59 | (function (Keyword) {
|
60 | Keyword["ADD"] = "ADD";
|
61 | Keyword["ARG"] = "ARG";
|
62 | Keyword["CMD"] = "CMD";
|
63 | Keyword["COPY"] = "COPY";
|
64 | Keyword["ENTRYPOINT"] = "ENTRYPOINT";
|
65 | Keyword["ENV"] = "ENV";
|
66 | Keyword["EXPOSE"] = "EXPOSE";
|
67 | Keyword["FROM"] = "FROM";
|
68 | Keyword["HEALTHCHECK"] = "HEALTHCHECK";
|
69 | Keyword["LABEL"] = "LABEL";
|
70 | Keyword["MAINTAINER"] = "MAINTAINER";
|
71 | Keyword["ONBUILD"] = "ONBUILD";
|
72 | Keyword["RUN"] = "RUN";
|
73 | Keyword["SHELL"] = "SHELL";
|
74 | Keyword["STOPSIGNAL"] = "STOPSIGNAL";
|
75 | Keyword["USER"] = "USER";
|
76 | Keyword["VOLUME"] = "VOLUME";
|
77 | Keyword["WORKDIR"] = "WORKDIR";
|
78 | })(Keyword = exports.Keyword || (exports.Keyword = {}));
|
79 | var Directive;
|
80 | (function (Directive) {
|
81 | Directive["escape"] = "escape";
|
82 | Directive["syntax"] = "syntax";
|
83 | })(Directive = exports.Directive || (exports.Directive = {}));
|
84 | exports.DefaultVariables = [
|
85 | "FTP_PROXY", "ftp_proxy",
|
86 | "HTTP_PROXY", "http_proxy",
|
87 | "HTTPS_PROXY", "https_proxy",
|
88 | "NO_PROXY", "no_proxy"
|
89 | ];
|
90 | var DockerfileParser;
|
91 | (function (DockerfileParser) {
|
92 | function parse(content) {
|
93 | let parser = new parser_1.Parser();
|
94 | return parser.parse(content);
|
95 | }
|
96 | DockerfileParser.parse = parse;
|
97 | })(DockerfileParser = exports.DockerfileParser || (exports.DockerfileParser = {}));
|