mirror of
https://github.com/praveentcom/openproxy.git
synced 2026-06-06 14:43:58 +02:00
feat: init llm-proxy
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
# Dockerfile
|
||||
FROM node:22-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files first for caching
|
||||
COPY package*.json ./
|
||||
|
||||
# Install ALL dependencies (including devDeps for TypeScript)
|
||||
RUN npm install
|
||||
|
||||
# Copy all source code
|
||||
COPY . .
|
||||
|
||||
# Compile TypeScript inside container
|
||||
RUN npx tsc
|
||||
|
||||
ENV PORT=8080
|
||||
EXPOSE 8080
|
||||
|
||||
# Run the compiled JS file
|
||||
CMD ["node", "dist/proxy.js"]
|
||||
Reference in New Issue
Block a user