File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11build
2- docker
3- .git
2+ docker
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ FROM dingodatabase/dingo-base:rocky8 AS builder
55WORKDIR /dingo-eureka
66
77# Copy the project files to the working directory
8- COPY ../../../.. .
8+ COPY . .
9+
10+ # list files in the current directory for debugging
11+ RUN ls -la /dingo-eureka
12+
13+ # Check /dingo-eureka have .git directory, if not, exit with error
14+ RUN if [ ! -d ".git" ]; then echo "Error: .git directory not found in /dingo-eureka." && exit 1; fi
915
1016# Build and install
1117RUN mkdir build && cd build && \
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ FROM dingodatabase/dingo-base:rocky9 AS builder
55WORKDIR /dingo-eureka
66
77# Copy the project files to the working directory
8- COPY ../../.. .
8+ COPY . .
9+
10+ # list files in the current directory for debugging
11+ RUN ls -la /dingo-eureka
12+
13+ # Check /dingo-eureka have .git directory, if not, exit with error
14+ RUN if [ ! -d ".git" ]; then echo "Error: .git directory not found in /dingo-eureka." && exit 1; fi
915
1016# Build and install dingo-eureka
1117RUN mkdir build && cd build && \
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ FROM dingodatabase/dingo-base:rocky9 AS builder
55WORKDIR /dingo-eureka
66
77# Copy the project files to the working directory
8- COPY ../../../.. .
8+ COPY . .
9+
10+ # list files in the current directory for debugging
11+ RUN ls -la /dingo-eureka
12+
13+ # Check /dingo-eureka have .git directory, if not, exit with error
14+ RUN if [ ! -d ".git" ]; then echo "Error: .git directory not found in /dingo-eureka." && exit 1; fi
915
1016# Build and install
1117RUN mkdir build && cd build && \
Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ RUN ln -sf /bin/bash /bin/sh
88WORKDIR /dingo-eureka
99
1010# Copy the project files to the working directory
11- COPY ../../../.. .
11+ COPY . .
12+
13+ # list files in the current directory for debugging
14+ RUN ls -la /dingo-eureka
15+
16+ # Check /dingo-eureka have .git directory, if not, exit with error
17+ RUN if [ ! -d ".git" ]; then echo "Error: .git directory not found in /dingo-eureka." && exit 1; fi
1218
1319# Build and install
1420RUN mkdir build && cd build && \
You can’t perform that action at this time.
0 commit comments