sid_racha
commited on
Commit
·
1ba072b
1
Parent(s):
130f4c1
modified entrypoint
Browse files- Dockerfile +3 -0
- __init__.py +0 -0
- entrypoint.sh +4 -0
Dockerfile
CHANGED
@@ -15,5 +15,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
15 |
# Copy the rest of the application code from the host to the container
|
16 |
# Again, ensure the copied files are owned by 'user'
|
17 |
COPY --chown=user . /app
|
|
|
|
|
|
|
18 |
# Specify the command to run when the container starts
|
19 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
15 |
# Copy the rest of the application code from the host to the container
|
16 |
# Again, ensure the copied files are owned by 'user'
|
17 |
COPY --chown=user . /app
|
18 |
+
# Use the entrypoint script
|
19 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
20 |
+
|
21 |
# Specify the command to run when the container starts
|
22 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
__init__.py
DELETED
File without changes
|
entrypoint.sh
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
export PYTHONPATH=$PYTHONPATH:/app:/app/app
|
4 |
+
exec "$@"
|