Spaces:
Runtime error
Runtime error
File size: 611 Bytes
b93ecc4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# Use the latest Node.js LTS version
FROM node:latest
# Install pnpm globally
RUN npm install -g pnpm
# Set working directory
WORKDIR /app
# Copy dist directory to the container
COPY dist ./dist
# Copy package.json to the container
COPY package.json ./
# Copy langgraph.json to the container
COPY langgraph.json ./
# Install dependencies using pnpm
RUN pnpm install
# Create a non-root user for security
RUN groupadd -r appuser && useradd -r -g appuser appuser
RUN chown -R appuser:appuser /app
USER appuser
# Expose the port
EXPOSE 7860
# Start the LangGraph agent server
CMD ["pnpm", "run", "start"]
|