mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 10:23:02 +03:00
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
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|
||||
ENTRYPOINT ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|
||||
|
Loading…
Reference in New Issue
Block a user