Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Sync docker base images; Build next app
Tomas Valenta2fd0f2af101b
diff --git a/Dockerfile b/Dockerfileindex 05d9cd4ec..ede8ff537 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,4 +1,4 @@-FROM node:18+FROM node:lts-slim AS depsWORKDIR /app@@ -6,10 +6,33 @@ COPY package.json package-lock.json* ./COPY prisma/schema.prisma ./prisma/schema.prismaRUN npm ci++# FROM node:lts-slim AS builder+# WORKDIR /app+# COPY --from=deps /app/node_modules ./node_modules+COPY . .-EXPOSE 3000+ENV NEXT_TELEMETRY_DISABLED 1+ENV BUILD docker+RUN npm run build+++# FROM node:lts-slim AS runner+# WORKDIR /app+ENV NODE_ENV production+ENV NEXT_TELEMETRY_DISABLED 1ENV PORT 3000-CMD ["npx", "next", "dev"]+EXPOSE 3000++# COPY --from=builder /app/.next ./.next+# COPY --from=deps /app/node_modules ./node_modules++# TODO: Automatically leverage output traces to reduce image size+# https://nextjs.org/docs/advanced-features/output-file-tracing++CMD ["npm", "run", "start:next"]++# CMD ["npx", "next", "start"]diff --git a/api-service/Dockerfile b/api-service/Dockerfileindex cd600ea3d..d8e6a6a58 100644--- a/api-service/Dockerfile+++ b/api-service/Dockerfile@@ -1,5 +1,5 @@# This stage builds playground-FROM node:18 as playground+FROM node:lts-slim as playgroundWORKDIR /playground@@ -14,7 +14,7 @@ RUN npm run build# This is the final image that also installs python deps-FROM nikolaik/python-nodejs+FROM nikolaik/python-nodejs:python3.10-nodejs18-slimENV PYTHONFAULTHANDLER=1 \PYTHONHASHSEED=random \@@ -24,8 +24,6 @@ ENV PIP_DEFAULT_TIMEOUT=100 \PIP_DISABLE_PIP_VERSION_CHECK=1 \PIP_NO_CACHE_DIR=1-# RUN pip install poetry==1.3.2-RUN poetry config virtualenvs.in-project trueWORKDIR /appdiff --git a/package.json b/package.jsonindex 60311e240..b0ef406b4 100644--- a/package.json+++ b/package.json@@ -4,6 +4,7 @@"private": true,"scripts": {"dev:next": "next dev",+ "start:next": "next start","dev": "npx concurrently -p none \"next dev\" \"npm run start:api\" \"npm run start:playground\"","dev:api-service": "npx concurrently \"npm run start:api\" \"npm run start:playground\"","build": "next build",@@ -82,4 +83,4 @@"tailwindcss": "^3.2.7","typescript": "^4.9.5"}-}+}\ No newline at end of file