Skip to content

Commit

Permalink
vcsim: Update Dockerfile
Browse files Browse the repository at this point in the history
The `vcsim` Dockerfile now uses `ENTRYPOINT` for the `vcsim` binary and
`CMD` for default listener address `0.0.0.0:8989`. A user can now easily
overwrite the default behavior without having to specify `/vcsim`
explicitly since it is the defined `ENTRYPOINT`.

Signed-off-by: Michael Gasch <mgasch@vmware.com>
  • Loading branch information
Michael Gasch committed May 11, 2022
1 parent 72c2000 commit e4e89e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.vcsim
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ EXPOSE 8989
COPY vcsim /vcsim

# Set entrypoint to application with container defaults
CMD ["/vcsim", "-l", "0.0.0.0:8989"]
ENTRYPOINT [ "/vcsim" ]
CMD ["-l", "0.0.0.0:8989"]

0 comments on commit e4e89e9

Please sign in to comment.