From 8be9e1bcb354dd08d99d90f6083e6d8d9f419069 Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Thu, 9 Jan 2025 16:25:42 -0800 Subject: [PATCH] trim down the plugin server dockerfile a bit more --- docker/Dockerfile.plugin | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/docker/Dockerfile.plugin b/docker/Dockerfile.plugin index 4d2c6982c3b68..82f3bba997223 100644 --- a/docker/Dockerfile.plugin +++ b/docker/Dockerfile.plugin @@ -1,13 +1,7 @@ FROM ghcr.io/posthog/rust-node-container:bullseye_rust_1.80.1-node_18.19.1 AS plugin-server-build -WORKDIR /code -COPY ./rust ./rust -COPY ./plugin-transpiler/ ./plugin-transpiler/ WORKDIR /code/plugin-server SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"] -# Compile and install Node.js dependencies. -COPY ./plugin-server/package.json ./plugin-server/pnpm-lock.yaml ./plugin-server/tsconfig.json ./ -COPY ./plugin-server/patches/ ./patches/ RUN apt-get update && \ apt-get install -y --no-install-recommends \ "make" \ @@ -17,11 +11,4 @@ RUN apt-get update && \ "libssl-dev" \ "zlib1g-dev" \ && \ - rm -rf /var/lib/apt/lists/* && \ - corepack enable && \ - mkdir /tmp/pnpm-store && \ - pnpm install --frozen-lockfile --store-dir /tmp/pnpm-store && \ - cd ../plugin-transpiler && \ - pnpm install --frozen-lockfile --store-dir /tmp/pnpm-store && \ - pnpm build && \ - rm -rf /tmp/pnpm-store \ No newline at end of file + rm -rf /var/lib/apt/lists/* \ No newline at end of file