Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Specify docker image platforms

Tomas Valenta6dbec4d007c1
diff --git a/Dockerfile b/Dockerfile
index 5cb3d2953..f9e984fc4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:lts-slim AS builder
+FROM --platform=linux/amd64 node:lts-slim AS builder
WORKDIR /app
@@ -17,7 +17,7 @@ ENV BUILD docker
RUN npm run build
-FROM node:lts-slim AS runner
+FROM --platform=linux/amd64 node:lts-slim AS runner
WORKDIR /app
diff --git a/api-service/Dockerfile b/api-service/Dockerfile
index d8e6a6a58..3f75607df 100644
--- a/api-service/Dockerfile
+++ b/api-service/Dockerfile
@@ -1,5 +1,5 @@
# This stage builds playground
-FROM node:lts-slim as playground
+FROM --platform=linux/amd64 node:lts-slim as playground
WORKDIR /playground
@@ -14,7 +14,7 @@ RUN npm run build
# This is the final image that also installs python deps
-FROM nikolaik/python-nodejs:python3.10-nodejs18-slim
+FROM --platform=linux/amd64 nikolaik/python-nodejs:python3.10-nodejs18-slim
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \