Spaces:
Sleeping
Sleeping
Praneeth Yerrapragada
commited on
Commit
•
67b6525
1
Parent(s):
ea584c8
build: inject env vars before npm run build
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -27,6 +27,8 @@ COPY . .
|
|
27 |
# Uncomment the following line in case you want to disable telemetry during the build.
|
28 |
# ENV NEXT_TELEMETRY_DISABLED 1
|
29 |
|
|
|
|
|
30 |
RUN \
|
31 |
if [ -f yarn.lock ]; then yarn run build; \
|
32 |
elif [ -f package-lock.json ]; then npm run build; \
|
|
|
27 |
# Uncomment the following line in case you want to disable telemetry during the build.
|
28 |
# ENV NEXT_TELEMETRY_DISABLED 1
|
29 |
|
30 |
+
ENV NEXT_PUBLIC_CHAT_API https://praneeth-hakeem-patrick-backend.hf.space/api/chat
|
31 |
+
|
32 |
RUN \
|
33 |
if [ -f yarn.lock ]; then yarn run build; \
|
34 |
elif [ -f package-lock.json ]; then npm run build; \
|