mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
30 lines
768 B
Docker
30 lines
768 B
Docker
# syntax=docker/dockerfile:1-labs
|
|
|
|
FROM node:22-slim AS base
|
|
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.4 /lambda-adapter /opt/extensions/lambda-adapter
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable
|
|
RUN corepack prepare pnpm@9.15.0 --activate
|
|
|
|
RUN apt-get update && apt-get install curl -y
|
|
|
|
# First install via pnpx
|
|
RUN pnpx @langchain/langgraph-cli --help
|
|
|
|
ARG APP_DIR
|
|
|
|
WORKDIR /app
|
|
|
|
RUN touch .env
|
|
|
|
# Copy only poetry files first
|
|
COPY ${APP_DIR}/package.json ${APP_DIR}/pnpm-lock.yaml ./
|
|
RUN pnpm i --frozen-lockfile
|
|
|
|
# Copy SDK and install dependencies in a single layer
|
|
COPY ${APP_DIR}/ ./
|
|
|
|
RUN ls -la
|
|
|
|
CMD ["/bin/sh", "-c", "pnpx @langchain/langgraph-cli dev --config=langgraph.json --no-browser --port 8000 --host 0.0.0.0"] |