From 7584f270185743485a988487a34b612f6ddf18a2 Mon Sep 17 00:00:00 2001 From: smiggiddy Date: Fri, 2 May 2025 23:32:33 +0000 Subject: [PATCH] fix the damn path issues --- restaurant/devops/Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/restaurant/devops/Dockerfile b/restaurant/devops/Dockerfile index d366564..fea75f1 100644 --- a/restaurant/devops/Dockerfile +++ b/restaurant/devops/Dockerfile @@ -4,17 +4,14 @@ FROM node:18-alpine AS builder # Set the working directory WORKDIR /app -# Copy package.json and package-lock.json (if present) -COPY /app/package*.json ./ +# Copy package files +COPY restaurant/app . # Install dependencies -RUN npm install +RUN npm install -# Copy the rest of the application code -COPY . . - -# Build the application using webpack -RUN npm run build -- --config app/webpack.config.js +# Build the application +RUN npm run build -- --config ./webpack.config.js # Use an Nginx base image to serve the static files FROM nginx:alpine