# Use a base image FROM ubuntu:latest # Enable BuildKit in Docker ENV DOCKER_BUILDKIT=1 ENV COMPOSE_DOCKER_CLI_BUILD=1 # Set bash shell and exit on error RUN set -e && \ echo "Running shell script with error handling" # Build the image with caching RUN docker build \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from type=registry,ref=user/dify:cache \ --cache-to type=registry,ref=user/dify:cache,mode=max \ -t dify . # Other necessary instructions here