From 5bf2bc0be35374ba0077c98de19af6221efa66e8 Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:05:15 +0000 Subject: [PATCH] Ensure user has access to the SQL folder (#958) --- Dockerfile.api | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile.api b/Dockerfile.api index 3e64152a8..834b08549 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -33,4 +33,6 @@ LABEL org.opencontainers.image.description="Manage Free School Projects - API" COPY --from=build /app /app COPY ./script/api-docker-entrypoint.sh /app/docker-entrypoint.sh RUN ["chmod", "+x", "/app/docker-entrypoint.sh"] +RUN ["touch", "/app/SQL/DbMigrationScriptOutput.txt"] +RUN chown "$APP_UID" "/app/SQL" -R USER $APP_UID