Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2 is not working in docker #1360

Closed
tugbayatilla opened this issue Sep 20, 2024 · 3 comments
Closed

v1.2 is not working in docker #1360

tugbayatilla opened this issue Sep 20, 2024 · 3 comments

Comments

@tugbayatilla
Copy link

Describe the bug
When i upgrade the version from 1.1.306to 1.2.0, docker container is not working as expected anymore.

To Reproduce

Working examples

Example 1

FROM python:3.11.10-slim

RUN pip install chainlit==1.1.306

WORKDIR /app
COPY app.py .

CMD ["chainlit", "run", "app.py"]
FROM python:3.12.6-slim

RUN pip install chainlit==1.1.306

WORKDIR /app
COPY app.py .

CMD ["chainlit", "run", "app.py"]
image

Problematic Examples

FROM python:3.11.10-slim

RUN pip install chainlit==1.2.0

WORKDIR /app
COPY app.py .

CMD ["chainlit", "run", "app.py"]
FROM python:3.12.6-slim

RUN pip install chainlit==1.2.0

WORKDIR /app
COPY app.py .

CMD ["chainlit", "run", "app.py"]
image

Expected behavior
When you upgrade the version of chainlit, i am expecting to see the (almost) same result on previous version.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOs 14.6.1 (23G93)
  • Browser Chroma
  • Version 129.0.6668.58 (Official Build) (arm64)
@hadarsharon
Copy link

Hey @tugbayatilla Please try modifying your entrypoint as follows:

CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0"]

This was a breaking change done as part of #861
I believe listening at 0.0.0.0 should resolve your issue

@dokterbob
Copy link
Collaborator

dokterbob commented Sep 20, 2024

Thanks @hadarsharon!

@tugbayatilla I recommend you check the changelog and/or release notes before upgrading!

@tugbayatilla
Copy link
Author

Hey @tugbayatilla Please try modifying your entrypoint as follows:

CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0"]

This was a breaking change done as part of #861 I believe listening at 0.0.0.0 should resolve your issue

That solves the problem. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants