build(dockerfile): update entrypoint for authentication
This commit is contained in:
parent
b0acad860e
commit
9b42dbfa7f
@ -17,8 +17,6 @@ ENV MONGODB_NAME=freeleaps2
|
||||
ENV MONGODB_PORT=27017
|
||||
ENV MONGODB_URI="mongodb://localhost:27017/"
|
||||
|
||||
|
||||
|
||||
#log_settings
|
||||
ENV LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME
|
||||
ENV BACKEND_LOG_FILE_NAME=$APP_NAME
|
||||
@ -33,16 +31,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . ${CONTAINER_APP_ROOT}
|
||||
|
||||
# Install tools and keyring updates
|
||||
#RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
# gnupg wget && \
|
||||
# apt-get install -y debian-keyring debian-archive-keyring && \
|
||||
# rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install additional tools and create symbolic links
|
||||
#RUN apt-get update && apt-get install -y netcat && \
|
||||
# ln -s /bin/bash /usr/bin/bash && \
|
||||
# rm -rf /var/lib/apt/lists/*
|
||||
|
||||
EXPOSE ${SERVICE_API_ACCESS_PORT}
|
||||
CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"]
|
||||
# Using shell to expand environemnt to enure pass the actual environment value to uvicorn
|
||||
CMD uvicorn webapi.main:app --reload --port=$SERVICE_API_ACCESS_PORT --host=$SERVICE_API_ACCESS_HOST
|
||||
Loading…
Reference in New Issue
Block a user