@@ -10,7 +10,7 @@ ENV RUNUSER=oracleaim
1010RUN microdnf -y update
1111RUN microdnf -y install python3.11 python3.11-pip
1212RUN python3.11 -m venv --symlinks --upgrade-deps /opt/venv
13- COPY . /requirements.txt /opt/requirements.txt
13+ COPY app /requirements.txt /opt/requirements.txt
1414RUN source /opt/venv/bin/activate && \
1515 pip3 install --upgrade pip wheel setuptools && \
1616 pip3 install -r /opt/requirements.txt
@@ -25,10 +25,11 @@ ARG ENVIRONMENT
2525ENV PATH=/opt/venv/bin:$PATH
2626
2727# COPY THIRD_PARTY_LICENSES.txt /THIRD_PARTY_LICENSES.txt
28- COPY entrypoint.sh /entrypoint.sh
28+ COPY app/ entrypoint.sh /entrypoint.sh
2929RUN chmod +x /entrypoint.sh
3030
31- COPY --chown=$RUNUSER:$RUNUSER src/ /app/
31+ COPY --chown=$RUNUSER:$RUNUSER app/src/ /app/
32+ COPY --chown=$RUNUSER:$RUNUSER spring_ai/ /spring_ai/
3233# Copy the OCI directory if it exists
3334ENV ENVIRONMENT=${ENVIRONMENT}
3435RUN if [ -d "/app/.oci" ] && [ "$ENVIRONMENT" != "development" ]; then \
@@ -40,4 +41,4 @@ RUN if [ -d "/app/.oci" ] && [ "$ENVIRONMENT" != "development" ]; then \
4041USER $RUNUSER
4142WORKDIR /app/
4243
43- ENTRYPOINT ["/entrypoint.sh" ]
44+ ENTRYPOINT ["/entrypoint.sh" ]
0 commit comments