Skip to content

Commit

Permalink
fix: add BACKEND_URL arg to avoid build error (#520)
Browse files Browse the repository at this point in the history
* fix: add BACKEND_URL arg to avoid build error

* fix: add BACKEND_URL arg to avoid build error
  • Loading branch information
AyushSehrawat authored Jul 14, 2024
1 parent b7309c4 commit ffad7e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffad7e3

Please sign in to comment.