Skip to content

Commit a71f84c

Browse files
authored
Git is not needed here
1 parent d6e3480 commit a71f84c

File tree

1 file changed

+1
-8
lines changed
  • testcontainers-advanced-imagebuilder-demo

1 file changed

+1
-8
lines changed

testcontainers-advanced-imagebuilder-demo/Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ARG JAVA_VERSION=21
44
FROM eclipse-temurin:$JAVA_VERSION-jdk-alpine AS build-env
55

6-
RUN apk add --no-cache git bash
6+
RUN apk add --no-cache bash
77

88
WORKDIR /build
99

@@ -21,13 +21,6 @@ RUN ${MAVEN_GO_OFFLINE_COMMAND}
2121
# Copying all other files
2222
COPY . ./
2323

24-
# A valid Git repo is required for the build
25-
RUN git config --global user.email "[email protected]" \
26-
&& git config --global user.name "Dynamic Build" \
27-
&& git init --initial-branch=dynamically-built-tcst \
28-
&& git add . \
29-
&& git commit -m "Init commit"
30-
3124
ARG MAVEN_BUILD_COMMAND='./mvnw -B clean package -pl "testcontainers-advanced-imagebuilder-dummy-app" -am -T2C -Dmaven.test.skip'
3225
RUN echo "Executing '$MAVEN_BUILD_COMMAND'"
3326
RUN ${MAVEN_BUILD_COMMAND}

0 commit comments

Comments
 (0)