From c3123ce59110d105091c489ace378e53b85722fa Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Mon, 30 Sep 2024 18:44:00 +0100 Subject: [PATCH] Fix Dockerfile to run compile script for caching dependencies correctly. --- dockerfiles/swift-6.0.Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dockerfiles/swift-6.0.Dockerfile b/dockerfiles/swift-6.0.Dockerfile index 603d7f1..639fb95 100644 --- a/dockerfiles/swift-6.0.Dockerfile +++ b/dockerfiles/swift-6.0.Dockerfile @@ -9,7 +9,5 @@ WORKDIR /app # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses COPY --exclude=.git --exclude=README.md . /app -RUN .codecrafters/compile.sh - -# Cache dependencies (TODO: Check if this is required, or whether build implicitly caches dependencies) -RUN swift package --build-path /tmp/codecrafters-build-redis-swift resolve \ No newline at end of file +# Runs swift build, which caches dependencies +RUN .codecrafters/compile.sh \ No newline at end of file