Fix Version from Tag not picked up (#705)

This commit is contained in:
Yuhong Sun
2023-11-06 20:01:20 -08:00
committed by GitHub
parent abf9cc3248
commit 4f64444f0f
7 changed files with 9 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ FROM python:3.11.4-slim-bookworm
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions.
ARG DANSWER_VERSION=0.2-dev
ENV DANSWER_VERSION=${DANSWER_VERSION}
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
# Install system dependencies
RUN apt-get update && \

View File

@@ -3,6 +3,7 @@ FROM python:3.11.4-slim-bookworm
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions.
ARG DANSWER_VERSION=0.2-dev
ENV DANSWER_VERSION=${DANSWER_VERSION}
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
COPY ./requirements/model_server.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt

View File

@@ -227,5 +227,7 @@ app = get_application()
if __name__ == "__main__":
logger.info(f"Starting Danswer Backend on http://{APP_HOST}:{str(APP_PORT)}/")
logger.info(
f"Starting Danswer Backend version {__version__} on http://{APP_HOST}:{str(APP_PORT)}/"
)
uvicorn.run(app, host=APP_HOST, port=APP_PORT)