Skip to content

Commit 042476b

Browse files
jackblack369Wine93
authored andcommitted
[ci] Remove .git directory from .dockerignore
1 parent 55b287b commit 042476b

5 files changed

Lines changed: 29 additions & 6 deletions

File tree

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
build
2-
docker
3-
.git
2+
docker

docker/eureka/rocky8/store/Dockerfile-store

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ FROM dingodatabase/dingo-base:rocky8 AS builder
55
WORKDIR /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
1117
RUN mkdir build && cd build && \

docker/eureka/rocky9/Dockerfile-fs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ FROM dingodatabase/dingo-base:rocky9 AS builder
55
WORKDIR /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
1117
RUN mkdir build && cd build && \

docker/eureka/rocky9/store/Dockerfile-store

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ FROM dingodatabase/dingo-base:rocky9 AS builder
55
WORKDIR /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
1117
RUN mkdir build && cd build && \

docker/eureka/ubuntu22/store/Dockerfile-store

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ RUN ln -sf /bin/bash /bin/sh
88
WORKDIR /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
1420
RUN mkdir build && cd build && \

0 commit comments

Comments
 (0)