From 2ba2cda77263c405a226ad8f8bb3dba28ebf30f2 Mon Sep 17 00:00:00 2001 From: vandomej Date: Wed, 17 Sep 2025 11:54:59 -0700 Subject: [PATCH] Changing pointers for files --- fann-builder/Dockerfile | 5 ++--- fann-builder/build.sh | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/fann-builder/Dockerfile b/fann-builder/Dockerfile index 3bd0498..836832d 100644 --- a/fann-builder/Dockerfile +++ b/fann-builder/Dockerfile @@ -8,10 +8,9 @@ RUN apk add --no-cache \ # Create a non-root user to run the build (best practice) RUN adduser -D builder +USER builder WORKDIR /home/builder # The default command will be the build script -COPY build.sh /home/builder/build.sh - -USER builder +COPY build.sh . CMD ["/bin/sh", "build.sh"] \ No newline at end of file diff --git a/fann-builder/build.sh b/fann-builder/build.sh index 16d34d8..0f09163 100644 --- a/fann-builder/build.sh +++ b/fann-builder/build.sh @@ -12,8 +12,7 @@ ar rcs libfann.a floatfann.o doublefann.o fixedfann.o # Copy the crucial artifacts to a folder called 'output' # TeamCity will look for files in the working directory after the build. -mkdir -p ../output -cp libfann.a ../output/ -cp ../src/include/fann.h ../output/ +cp libfann.a ~/output/ +cp ../src/include/fann.h ~/output/ echo "Build complete! Artifacts are in the 'output' directory." \ No newline at end of file