automotion-agent / Dockerfile
huodon's picture
fix "Error: EACCES: permission denied, open '/app/.gitignore'"
c5b4830
raw
history blame
565 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 ./
COPY langgraph.json ./
COPY .gitignore /
# 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", "dev:agent:langgraph"]