We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537b1c3 commit 6561e0cCopy full SHA for 6561e0c
Dockerfile
@@ -9,8 +9,12 @@ COPY . .
9
10
RUN CGO_ENABLED=0 go build -o app
11
12
-FROM scratch
+FROM alpine:3.21
13
+
14
+RUN apk add --no-cache bash=5.2.37-r0
15
16
COPY --from=builder /app/app /usr/local/bin/
17
-ENTRYPOINT ["app"]
18
+COPY ./entrypoint.sh /usr/local/bin/
19
20
+ENTRYPOINT ["entrypoint.sh"]
entrypoint.sh
@@ -0,0 +1,12 @@
1
+#!/bin/bash
2
3
+# Initialize an empty array to hold the arguments
4
+args=()
5
6
+# Use a while loop to split INPUT_INCLUDES by spaces and handle each token
7
+while IFS= read -r -d ' ' token; do
8
+ args+=("$token")
+done <<<"$INPUT_INCLUDES "
+# Pass the arguments array to your main script
+exec app "${args[@]}"
0 commit comments