Skip to content

Commit

Permalink
Bind ports only to avoid host network usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Apr 13, 2020
1 parent 32772fd commit 7d65db1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async function action () {
await exec.exec('docker', [
'run',
'--detach',
'--network', 'host',
'-p', '80:80',
'-p', '443:443',
'--name', 'server',
...serverArgs
])
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9778,7 +9778,8 @@ async function action () {
await exec.exec('docker', [
'run',
'--detach',
'--network', 'host',
'-p', '80:80',
'-p', '443:443',
'--name', 'server',
...serverArgs
])
Expand Down

0 comments on commit 7d65db1

Please sign in to comment.