Spaces:
Building
Building
File size: 481 Bytes
4e763b4 475aa4b 4e763b4 475aa4b 4e763b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# 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
|