Skip to content

Strange behaviour running Solara in Docker #689

Answered by maercu
maercu asked this question in Q&A
Discussion options

You must be logged in to vote

It's somehow a signal handling issue, I worked around it with the follwing Docker file

FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .
RUN apt-get update && apt-get install -y tini && \
    pip install --no-cache-dir -r requirements.txt --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org

COPY . .

ENTRYPOINT ["tini", "--"]
CMD ["solara", "run", "--host=0.0.0.0", "--port", "8080", "frontend.py"]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maercu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant