updates render dockerfile to correctly copy patches dir into build context
This commit is contained in:
@@ -8,7 +8,6 @@ Reverse proxy server for various LLM APIs.
|
|||||||
- [Usage Instructions](#usage-instructions)
|
- [Usage Instructions](#usage-instructions)
|
||||||
- [Self-hosting](#self-hosting)
|
- [Self-hosting](#self-hosting)
|
||||||
- [Huggingface (outdated, not advised)](#huggingface-outdated-not-advised)
|
- [Huggingface (outdated, not advised)](#huggingface-outdated-not-advised)
|
||||||
- [Render (outdated, not advised)](#render-outdated-not-advised)
|
|
||||||
- [Local Development](#local-development)
|
- [Local Development](#local-development)
|
||||||
|
|
||||||
## What is this?
|
## What is this?
|
||||||
@@ -44,9 +43,6 @@ If you'd like to run your own instance of this server, you'll need to deploy it
|
|||||||
### Huggingface (outdated, not advised)
|
### Huggingface (outdated, not advised)
|
||||||
[See here for instructions on how to deploy to a Huggingface Space.](./docs/deploy-huggingface.md)
|
[See here for instructions on how to deploy to a Huggingface Space.](./docs/deploy-huggingface.md)
|
||||||
|
|
||||||
### Render (outdated, not advised)
|
|
||||||
[See here for instructions on how to deploy to Render.com.](./docs/deploy-render.md)
|
|
||||||
|
|
||||||
## Local Development
|
## Local Development
|
||||||
To run the proxy locally for development or testing, install Node.js >= 18.0.0 and follow the steps below.
|
To run the proxy locally for development or testing, install Node.js >= 18.0.0 and follow the steps below.
|
||||||
|
|
||||||
|
|||||||
@@ -17,9 +17,8 @@ ARG GREETING_URL
|
|||||||
RUN if [ -n "$GREETING_URL" ]; then \
|
RUN if [ -n "$GREETING_URL" ]; then \
|
||||||
curl -sL "$GREETING_URL" > greeting.md; \
|
curl -sL "$GREETING_URL" > greeting.md; \
|
||||||
fi
|
fi
|
||||||
COPY package*.json greeting.md* ./
|
|
||||||
RUN npm install
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN --mount=type=secret,id=_env,dst=/etc/secrets/.env cat /etc/secrets/.env >> .env
|
RUN --mount=type=secret,id=_env,dst=/etc/secrets/.env cat /etc/secrets/.env >> .env
|
||||||
EXPOSE 10000
|
EXPOSE 10000
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Deploy to Render.com
|
# Deploy to Render.com
|
||||||
|
|
||||||
**⚠️ This method is no longer recommended. Please use the [self-hosting instructions](./self-hosting.md) instead.**
|
**⚠️ This method is no longer supported or recommended and may not work. Please use the [self-hosting instructions](./self-hosting.md) instead.**
|
||||||
|
|
||||||
Render.com offers a free tier that includes 750 hours of compute time per month. This is enough to run a single proxy instance 24/7. Instances shut down after 15 minutes without traffic but start up again automatically when a request is received. You can use something like https://app.checklyhq.com/ to ping your proxy every 15 minutes to keep it alive.
|
Render.com offers a free tier that includes 750 hours of compute time per month. This is enough to run a single proxy instance 24/7. Instances shut down after 15 minutes without traffic but start up again automatically when a request is received. You can use something like https://app.checklyhq.com/ to ping your proxy every 15 minutes to keep it alive.
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
debugProxyErrorsPlugin,
|
debugProxyErrorsPlugin,
|
||||||
proxyEventsPlugin,
|
proxyEventsPlugin,
|
||||||
} from "http-proxy-middleware";
|
} from "http-proxy-middleware";
|
||||||
import { ProxyReqMutator, RequestPreprocessor } from "./index";
|
import { ProxyReqMutator } from "./index";
|
||||||
import { createOnProxyResHandler, ProxyResHandlerWithBody } from "../response";
|
import { createOnProxyResHandler, ProxyResHandlerWithBody } from "../response";
|
||||||
import { createQueueMiddleware } from "../../queue";
|
import { createQueueMiddleware } from "../../queue";
|
||||||
import { getHttpAgents } from "../../../shared/network";
|
import { getHttpAgents } from "../../../shared/network";
|
||||||
|
|||||||
Reference in New Issue
Block a user