Skip to content

Commit

Permalink
Update Node benchmark Dockerfile (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 authored Aug 2, 2023
1 parent 634b486 commit 9b5ee63
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions containers/pre_built_workers/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM node:10-buster
FROM node:18-bookworm

RUN mkdir -p /pre
WORKDIR /pre
Expand Down Expand Up @@ -45,15 +45,12 @@ ADD pkg_config.json /pre
RUN pkg -c pkg_config.json ./test/performance/worker.js

# Copy node modules to a new image
FROM debian:buster
FROM debian:bookworm

RUN mkdir -p /pre
WORKDIR /execute

COPY --from=0 /pre/worker-linux /execute
COPY --from=0 /pre/test/fixtures/native_native.js /execute/test/fixtures/native_native.js
COPY --from=0 /pre/GRPC_GIT_COMMIT.txt /execute/GRPC_GIT_COMMIT.txt

ENV NODE_OPTIONS='--require /execute/test/fixtures/native_native.js'

CMD ["bash"]

0 comments on commit 9b5ee63

Please sign in to comment.