automotion-agent / Dockerfile
dong
Initial commit with local project files
b93ecc4
raw
history blame
611 Bytes
# 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"]