build(docker): update Dockerfile for payment

This commit is contained in:
Zhenyu Sun 2025-02-22 12:34:30 +00:00
parent 3769af6e93
commit 8f799c60ff

View File

@ -15,14 +15,11 @@ ENV MONGODB_NAME=freeleaps2
ENV MONGODB_PORT=27017
ENV MONGODB_URI="mongodb://freeleaps2-mongodb:27017/"
#log_settings
ENV LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME
ENV BACKEND_LOG_FILE_NAME=$APP_NAME
ENV APPLICATION_ACTIVITY_LOG=$APP_NAME-activity
WORKDIR ${CONTAINER_APP_ROOT}
COPY requirements.txt .
@ -31,21 +28,6 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . ${CONTAINER_APP_ROOT}
#RUN apt update -y
#RUN apt install -y netcat
#RUN ln -s /bin/bash /usr/bin/bash
# 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}"]
CMD uvicorn webapi.main:app --reload --port=${SERVICE_API_ACCESS_PORT} --host=${SERVICE_API_ACCESS_HOST}