diff --git a/Dockerfile b/Dockerfile index db64a93..a1bb489 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,12 @@ COPY docker-entrypoint.sh /usr/local/bin/ # Make sure the entrypoint script is executable RUN chmod +x /usr/local/bin/docker-entrypoint.sh -# Load environment variables from Render's secret file and run the build -RUN set -a && . /run/secrets/.env && set +a && npm run build + +ENV OPENAI_API_KEY=openai-api-key-for-build +ENV REDIS_HOST=just-for-build-only +ENV REDIS_PORT=6379 + +RUN npm run build RUN cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/