Refine Dockerfile for payment isolation

This commit is contained in:
dongli 2025-01-12 13:35:53 -08:00
parent 96e12c1755
commit 885a9ffc0b

View File

@ -14,7 +14,7 @@ ENV STRIPE_API_KEY=sk_test_51Ogsw5B0IyqaSJBrwczlr820jnmvA1qQQGoLZ2XxOsIzikpmXo4p
ENV STRIPE_WEBHOOK_SECRET=whsec_S6ZWjSAdR5Cpsn2USH6ZRBqbdBIENjTC
ENV MONGODB_NAME=freeleaps2
ENV MONGODB_PORT=27017
ENV MONGODB_URI="mongodb://localhost:27017/"
ENV MONGODB_URI="mongodb://freeleaps2-mongodb:27017/"
@ -32,20 +32,21 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . ${CONTAINER_APP_ROOT}
#RUN apt update
#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/*
#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}"]
CMD uvicorn webapi.main:app --reload --port=${SERVICE_API_ACCESS_PORT} --host=${SERVICE_API_ACCESS_HOST}