Updated Dockerfile

This commit is contained in:
Zhenyu Sun 2025-02-22 11:55:44 +00:00
parent f22a2eedf2
commit 0a7c7429c3

View File

@ -38,9 +38,9 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . ${CONTAINER_APP_ROOT} COPY . ${CONTAINER_APP_ROOT}
RUN apt update #RUN apt update
RUN apt install -y netcat #RUN apt install -y netcat
RUN ln -s /bin/bash /usr/bin/bash #RUN ln -s /bin/bash /usr/bin/bash
EXPOSE ${SERVICE_API_ACCESS_PORT} EXPOSE ${SERVICE_API_ACCESS_PORT}
CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"] CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"]