From ffad7e31d493f4306d4d8f33bb7afd1d780a76d9 Mon Sep 17 00:00:00 2001 From: Ayush Sehrawat <69469790+AyushSehrawat@users.noreply.github.com> Date: Sun, 14 Jul 2024 14:36:44 +0530 Subject: [PATCH] fix: add BACKEND_URL arg to avoid build error (#520) * fix: add BACKEND_URL arg to avoid build error * fix: add BACKEND_URL arg to avoid build error --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ada8ce70..7bccef22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,10 +28,11 @@ RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR FROM node:20-alpine AS frontend WORKDIR /app COPY frontend/package*.json ./ -ARG BACKEND_URL +ARG BACKEND_URL="" RUN npm install -g pnpm && pnpm install COPY frontend/ . -RUN pnpm run build && pnpm prune --prod +# RUN pnpm run build && pnpm prune --prod +RUN BACKEND_URL=$BACKEND_URL pnpm run build && pnpm prune --prod # Final Image FROM python:3.11-alpine