Unstructured-IO / unstructured-api

Apache License 2.0
429 stars 94 forks source link

chore/Allow for a different server port via env var #410

Closed awalker4 closed 2 months ago

awalker4 commented 2 months ago

Closes #409

Use PORT in app-start.sh to allow us to change the server port.

To verify, make sure that these commands both run the server at the expected port:

make docker-build

docker run -p 9200:9200 -e PORT=9200 -it --rm pipeline-family-general-dev:latest
curl localhost:9200/healthcheck
{"healthcheck":"HEALTHCHECK STATUS: EVERYTHING OK!"}

docker run -p 8000:8000 -it --rm pipeline-family-general-dev:latest
curl localhost:8000/healthcheck
{"healthcheck":"HEALTHCHECK STATUS: EVERYTHING OK!"}