Skip to content

Commit 867c385

Browse files
authored
Add spring_ai directory to the Docker image since it is used in the code and some UI actions error out due to its absence when running in Docker container e.g. changing temperature. Moved Dockerfile to top level so that spring_ai is part of the Docker context. Updated README as well. (#82)
1 parent d5afe42 commit 867c385

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/Dockerfile renamed to Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV RUNUSER=oracleaim
1010
RUN microdnf -y update
1111
RUN microdnf -y install python3.11 python3.11-pip
1212
RUN python3.11 -m venv --symlinks --upgrade-deps /opt/venv
13-
COPY ./requirements.txt /opt/requirements.txt
13+
COPY app/requirements.txt /opt/requirements.txt
1414
RUN 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
2525
ENV 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
2929
RUN 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
3334
ENV ENVIRONMENT=${ENVIRONMENT}
3435
RUN if [ -d "/app/.oci" ] && [ "$ENVIRONMENT" != "development" ]; then \
@@ -40,4 +41,4 @@ RUN if [ -d "/app/.oci" ] && [ "$ENVIRONMENT" != "development" ]; then \
4041
USER $RUNUSER
4142
WORKDIR /app/
4243

43-
ENTRYPOINT ["/entrypoint.sh"]
44+
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ To run the application in a container; download the [source](https://github.com/
7575

7676
1. Build the image.
7777

78-
From the `app/` directory, build Image:
78+
From the root of the project, build Image:
7979

8080
```bash
8181
podman build -t oaim-sandbox .

0 commit comments

Comments
 (0)