Skip to content

Commit

Permalink
trim down the plugin server dockerfile a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Jan 10, 2025
1 parent 229dd09 commit 8be9e1b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions docker/Dockerfile.plugin
Original file line number Diff line number Diff line change
@@ -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 && \

Check warning on line 5 in docker/Dockerfile.plugin

View workflow job for this annotation

GitHub Actions / Lint changed Dockerfiles

Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
apt-get install -y --no-install-recommends \
"make" \
Expand All @@ -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
rm -rf /var/lib/apt/lists/*

0 comments on commit 8be9e1b

Please sign in to comment.