fix: ensure /app directory exists before WORKDIR and COPY operations in Dockerfile

This commit is contained in:
Greg 2025-05-29 16:08:10 +02:00
parent 326df96088
commit a3b2d54e6d

View File

@ -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)