From a3b2d54e6d17fb94c6d6f127916ec7f4cde71692 Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 29 May 2025 16:08:10 +0200 Subject: [PATCH] fix: ensure /app directory exists before WORKDIR and COPY operations in Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1818dca..1e8c2ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,9 +49,11 @@ COPY css/ /usr/share/nginx/html/css/ # COPY images/ /usr/share/nginx/html/images/ # Create app directory for Node.js API and copy from builder stage +RUN mkdir -p /app # Explicitly create /app WORKDIR /app # Make sure this WORKDIR is set before copying to /app COPY --from=builder /app . +RUN pwd # DEBUG: Print current working directory RUN ls -la /app # DEBUG: List contents of /app before supervisor starts # Create data directory (volume will be mounted here by docker-compose)