Skip to content

Commit 3fb661f

Browse files
committed
Exclude Java main wrapper from Docker directory created in runtimes.
1 parent 0fa43be commit 3fb661f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sebs/openwhisk/openwhisk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def build_base_image(
168168
)
169169

170170
for fn in os.listdir(directory):
171-
if fn not in ("index.js", "__main__.py"):
171+
if fn not in ("index.js", "__main__.py", "Main.java"):
172172
file = os.path.join(directory, fn)
173173
shutil.move(file, build_dir)
174174

@@ -219,6 +219,7 @@ def package_code(
219219
CONFIG_FILES = {
220220
"python": ["__main__.py"],
221221
"nodejs": ["index.js"],
222+
"nodejs": ["Main.java"],
222223
}
223224
package_config = CONFIG_FILES[language_name]
224225

0 commit comments

Comments
 (0)