alessandro trinca tornidor
commited on
Commit
·
3035898
1
Parent(s):
268865d
ci: docker, try using directly a CMD command with source venv && uvicorn
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -199,7 +199,8 @@ RUN ls -l ${LAMBDA_TASK_ROOT}/.venv
|
|
199 |
RUN ls -l ${LAMBDA_TASK_ROOT}/.venv/bin/activate
|
200 |
|
201 |
# CMD ["/var/task/docker_entrypoint.sh"]
|
202 |
-
CMD [
|
203 |
-
"source", "/var/task/.venv/bin/activate", "&&",
|
204 |
-
"uvicorn", "app:app", "--host","0.0.0.0", "--port", "7860"
|
205 |
-
]
|
|
|
|
199 |
RUN ls -l ${LAMBDA_TASK_ROOT}/.venv/bin/activate
|
200 |
|
201 |
# CMD ["/var/task/docker_entrypoint.sh"]
|
202 |
+
#CMD [
|
203 |
+
# "source", "/var/task/.venv/bin/activate", "&&",
|
204 |
+
# "uvicorn", "app:app", "--host","0.0.0.0", "--port", "7860"
|
205 |
+
#]
|
206 |
+
CMD ["/usr/bin/bash", "-c", "source /var/task/.venv/bin/activate && uvicorn app:app --host 0.0.0.0 --port 7860"]
|