Skip to content
Snippets Groups Projects
Commit a15488fb authored by Flnal's avatar Flnal
Browse files

es funktioniert!

parent 82ee732e
No related branches found
No related tags found
1 merge request!3Master
FROM golang:1.20-buster FROM golang:1.20-buster
WORKDIR /go/src/app WORKDIR /go/src/app
COPY . . COPY . .
RUN ls -l
RUN go mod download RUN go mod download
RUN go install RUN go install
RUN chmod +x ./wait-for-it.sh ./docker-entrypoint.sh RUN chmod +x ./wait-for-it.sh ./docker-entrypoint.sh
......
...@@ -5,8 +5,8 @@ set -e ...@@ -5,8 +5,8 @@ set -e
# Wait for DB # Wait for DB
if [ -n "$DB_CONNECT" ]; then if [ -n "$DB_CONNECT" ]; then
/go/src/app/wait-for-it.sh "$DB_CONNECT" -t 20 /go/src/app/wait-for-it.sh "$DB_CONNECT" -t 40
fi fi
# Run the main container command. # Run the main container command.
exec "$@" exec "$@"
\ No newline at end of file
...@@ -179,4 +179,4 @@ if [[ $WAITFORIT_CLI != "" ]]; then ...@@ -179,4 +179,4 @@ if [[ $WAITFORIT_CLI != "" ]]; then
exec "${WAITFORIT_CLI[@]}" exec "${WAITFORIT_CLI[@]}"
else else
exit $WAITFORIT_RESULT exit $WAITFORIT_RESULT
fi fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment