Skip to content

Commit

Permalink
fix: Don't overwrite if one exists
Browse files Browse the repository at this point in the history
  • Loading branch information
David Chang committed Sep 21, 2024
1 parent 26a9f78 commit e7877d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ COPY common /common
WORKDIR /frontend

# Point frontend at the correct URL to communicate with the backend
RUN echo "NEXT_PUBLIC_BACKEND_URL=http://localhost:80" > /frontend/.env.local
RUN if ! grep -q "^NEXT_PUBLIC_BACKEND_URL=" /frontend/.env /frontend/.env.local 2>/dev/null; then \
echo "NEXT_PUBLIC_BACKEND_URL=http://localhost:80" > /frontend/.env.local; \
fi

# install npm
RUN apk add --update npm
Expand Down

0 comments on commit e7877d4

Please sign in to comment.