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