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:
Tobias 2023-02-27 20:14:05 +01:00 committed by GitHub
parent d5e72f92b5
commit bed7ab9564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]