Use entrypoint instead of cmd in order to facilitate argument passing (#654)
See https://docs.docker.com/engine/reference/builder/#entrypoint and https://docs.docker.com/engine/reference/builder/#cmd. This allows specifying additional arguments directly after 'docker run ...', e.g. docker run --rm sosedoff/pgweb --listen=8082
This commit is contained in:
parent
d5e72f92b5
commit
bed7ab9564
@ -33,5 +33,4 @@ RUN \
|
|||||||
COPY --from=build /build/pgweb /usr/bin/pgweb
|
COPY --from=build /build/pgweb /usr/bin/pgweb
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
ENTRYPOINT ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|
||||||
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user