understanding commited on
Commit
db6dd3c
·
verified ·
1 Parent(s): 6e8d7df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,9 +1,8 @@
1
-
2
  # ---- Stage 1: Build the TypeScript project ----
3
  FROM node:20-bullseye-slim AS builder
4
 
5
- # Install system dependencies needed for the build, INCLUDING git
6
- RUN apt-get update && apt-get install -y --no-install-recommends git && \
7
  apt-get clean && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
@@ -17,8 +16,8 @@ RUN pnpm build
17
  # ---- Stage 2: Create the final, lightweight production image ----
18
  FROM node:20-bullseye-slim
19
 
20
- # Install system dependencies needed for runtime, INCLUDING git
21
- RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg git && \
22
  apt-get clean && rm -rf /var/lib/apt/lists/*
23
 
24
  WORKDIR /app
 
 
1
  # ---- Stage 1: Build the TypeScript project ----
2
  FROM node:20-bullseye-slim AS builder
3
 
4
+ # Install system dependencies needed for the build, INCLUDING git and ca-certificates
5
+ RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
6
  apt-get clean && rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
 
16
  # ---- Stage 2: Create the final, lightweight production image ----
17
  FROM node:20-bullseye-slim
18
 
19
+ # Install system dependencies needed for runtime, INCLUDING git and ca-certificates
20
+ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg git ca-certificates && \
21
  apt-get clean && rm -rf /var/lib/apt/lists/*
22
 
23
  WORKDIR /app