fix: ensure /app directory exists before WORKDIR and COPY operations in Dockerfile
This commit is contained in:
parent
326df96088
commit
a3b2d54e6d
@ -49,9 +49,11 @@ COPY css/ /usr/share/nginx/html/css/
|
|||||||
# COPY images/ /usr/share/nginx/html/images/
|
# COPY images/ /usr/share/nginx/html/images/
|
||||||
|
|
||||||
# Create app directory for Node.js API and copy from builder stage
|
# 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
|
WORKDIR /app # Make sure this WORKDIR is set before copying to /app
|
||||||
COPY --from=builder /app .
|
COPY --from=builder /app .
|
||||||
|
|
||||||
|
RUN pwd # DEBUG: Print current working directory
|
||||||
RUN ls -la /app # DEBUG: List contents of /app before supervisor starts
|
RUN ls -la /app # DEBUG: List contents of /app before supervisor starts
|
||||||
|
|
||||||
# Create data directory (volume will be mounted here by docker-compose)
|
# Create data directory (volume will be mounted here by docker-compose)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user