Fix
This commit is contained in:
@ -13,17 +13,17 @@ echo "Build context: $(pwd)"
|
|||||||
|
|
||||||
# Check if Dockerfile exists
|
# Check if Dockerfile exists
|
||||||
if [[ ! -f "Dockerfile" ]]; then
|
if [[ ! -f "Dockerfile" ]]; then
|
||||||
echo "Error: Dockerfile not found in current directory"
|
echo "Error: Dockerfile not found in current directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build with build cache and progress output
|
# Build with build cache and progress output
|
||||||
docker build \
|
exec docker build \
|
||||||
--tag "${FULL_TAG}" \
|
--tag "${FULL_TAG}" \
|
||||||
--progress=plain \
|
--progress=plain \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
"${@:2}" \
|
"${@:2}" \
|
||||||
.
|
.
|
||||||
|
|
||||||
# Display image info
|
# Display image info
|
||||||
echo "\nBuild completed successfully!"
|
echo "\nBuild completed successfully!"
|
||||||
|
@ -40,7 +40,7 @@ if [[ ! -f "$(pwd)/feed_urls.txt" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Run container with proper volume mounts and networking
|
# Run container with proper volume mounts and networking
|
||||||
docker run \
|
exec docker run \
|
||||||
--detach \
|
--detach \
|
||||||
--name "${CONTAINER_NAME}" \
|
--name "${CONTAINER_NAME}" \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
|
Reference in New Issue
Block a user