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