Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
benjick committed Oct 20, 2024
1 parent 25e6213 commit 2d9a411
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM node:20.14-bullseye-slim

RUN apt-get update && apt-get install -y \
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
build-essential \
libvips-dev \
&& rm -rf /var/lib/apt/lists/*

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm && pnpm add -g [email protected]
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g pnpm \
&& pnpm add -g [email protected] \
&& apt-get purge -y --auto-remove build-essential \
&& apt-get clean

0 comments on commit 2d9a411

Please sign in to comment.