Spaces:
Runtime error
Runtime error
Commit ·
732bb40
1
Parent(s): 30b40e4
Add entrypoint script and update Dockerfile for container launch
Browse filesFiles changed (3)
- Dockerfile+15-4
- entrypoint.shAdded+4
- requirements.txt+1
18 unmodified lines19202122232425262728293018 unmodified lines# Copy the rest of the application's code into the container at /appCOPY . .# Make port 8000 available to the world outside this containerEXPOSE 8000# Define environment variableENV CHAINLIT_HOST=0.0.0.0ENV CHAINLIT_PORT=8000# Run app.py when the container launchesCMD ["chainlit", "run", "app.py"]18 unmodified lines192021222324252627282930313233343536373839404118 unmodified lines# Copy the rest of the application's code into the container at /appCOPY . .# Copy and make entrypoint executableCOPY entrypoint.sh .RUN chmod +x entrypoint.sh# Make port 8000 available to the world outside this container (for local dev)EXPOSE 8000# Run the entrypoint script when the container launchesENTRYPOINT ["./entrypoint.sh"]# Make port 8000 available to the world outside this container# EXPOSE 8000# Define environment variable# ENV CHAINLIT_HOST=0.0.0.0# ENV CHAINLIT_PORT=8000# Run app.py when the container launches# CMD ["chainlit", "run", "app.py"]# CMD chainlit run app.py --host 0.0.0.0 --port ${PORT:-8000} --headless
1234#!/bin/sh# This script runs the Chainlit app, binding to Render's dynamic PORT (falls back to 8000 locally)
exec chainlit run app.py --host 0.0.0.0 --port ${PORT:-8000} --headless14 unmodified lines15161714 unmodified linesasyncpg>=0.29.0ragas>=0.1.0datasets>=2.0.014 unmodified lines1516171814 unmodified linesasyncpg>=0.29.0ragas>=0.1.0datasets>=2.0.0langchain-classic>=1.0.0
Dockerfile+15-4
entrypoint.shAdded+4
requirements.txt+1