Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI Tutor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Salma Mohammed Hamed
AI Tutor
Commits
a3e91608
Commit
a3e91608
authored
Sep 17, 2025
by
SalmaMohammedHamedMustafa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add start.sh
parent
4e984c19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
Dockerfile
self_hosted_env/voice_agent/Dockerfile
+2
-4
start.sh
self_hosted_env/voice_agent/start.sh
+13
-0
No files found.
self_hosted_env/voice_agent/Dockerfile
View file @
a3e91608
...
...
@@ -16,9 +16,7 @@ COPY . .
# Make the script executable
RUN
chmod
+x wait-for-postgres.sh
# Use the full path for the entrypoint
ENTRYPOINT
["/app/wait-for-postgres.sh"]
RUN
chmod
+x ./start.sh
# This is your application's original startup command
CMD
["/bin/bash", "-c", "python apply_test_schema.py && python insert_csv_embeddings.py && uvicorn main:app --host 0.0.0.0 --port 8000"]
\ No newline at end of file
ENTRYPOINT
["./start.sh"]
\ No newline at end of file
self_hosted_env/voice_agent/start.sh
0 → 100644
View file @
a3e91608
#!/bin/bash
set
-e
# Run the database readiness check
/app/wait-for-postgres.sh
echo
"Setting up schema and inserting data..."
python apply_test_schema.py
python insert_csv_embeddings.py
echo
"Database setup complete."
# Start the web server and keep it as the main process
exec
uvicorn main:app
--host
0.0.0.0
--port
8000
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment