File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COPY ./packages/connect-python /packages/connect-python
1010RUN cd /packages/connect-python && make bin/protoc-gen-connect-python
1111
1212
13- FROM python:3.9
13+ FROM python:3.10
1414
1515# Set working directory
1616WORKDIR /workspace
@@ -36,17 +36,20 @@ ENV PATH="/go/bin:${PATH}"
3636# https://github.com/openapi-generators/openapi-python-client/pull/1296
3737RUN pip install black==23.7.0 pyyaml==6.0.2 e2b-openapi-python-client==0.26.2 datamodel-code-generator==0.34.0
3838
39- # Install Node.js and npm
40- RUN apt-get update && \
41- apt-get install -y curl && \
42- curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
43- apt-get install -y nodejs && \
44- apt-get clean && \
45- rm -rf /var/lib/apt/lists/*
39+ # Install Node.js (pinned to match .tool-versions)
40+ ENV NODE_VERSION=20.19.5
41+ RUN ARCH=$(uname -m) && \
42+ case "$ARCH" in \
43+ x86_64) NODE_ARCH="x64" ;; \
44+ arm64|aarch64) NODE_ARCH="arm64" ;; \
45+ *) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
46+ esac && \
47+ curl -fsSL https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.xz | tar -xJ -C /usr/local --strip-components=1
4648
4749# Install Node.js deps
50+ ENV PNPM_VERSION=9.15.5
4851RUN npm install -g \
49- pnpm \
52+ pnpm@${PNPM_VERSION} \
5053 @connectrpc/protoc-gen-connect-es@1.6.1 \
5154 @bufbuild/protoc-gen-es@2.6.2
5255
You can’t perform that action at this time.
0 commit comments