diff --git a/tools/walletextension/frontend/Dockerfile b/tools/walletextension/frontend/Dockerfile index f5bebcafb3..600dbdf617 100644 --- a/tools/walletextension/frontend/Dockerfile +++ b/tools/walletextension/frontend/Dockerfile @@ -7,14 +7,11 @@ ENV NEXT_PUBLIC_API_GATEWAY_URL=${GATEWAY_API_URL} # Set the working directory WORKDIR /usr/src/app -# Install dependencies in a separate layer to optimize caching -COPY package*.json ./ +# Copy the necessary files to the working directory +COPY tools/walletextension/frontend/ . # Install dependencies -RUN npm install - -# Copy the rest of the application code -COPY . . +RUN npm ci # Build the Next.js app RUN npm run build