Skip to content

Commit

Permalink
refactor: Optimize apt commands and dependency versions (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD authored Mar 13, 2024
1 parent 6baaffb commit 7de9651
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
FROM node:18.7.0-slim AS base

# openssl will be a required package if base is updated to 18.16+ due to node:*-slim base distro change
# https://github.com/prisma/prisma/issues/19729#issuecomment-1591270599
# Install ffmpeg
RUN apt-get update && \
apt-get install -y ffmpeg tini libssl-dev ca-certificates git && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ffmpeg \
tini \
openssl \
ca-certificates \
git \
&& apt-get autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*

# Install dependencies
FROM base AS dependencies
Expand Down

0 comments on commit 7de9651

Please sign in to comment.