Compare commits
2 Commits
build_2025
...
build_2025
| Author | SHA1 | Date | |
|---|---|---|---|
|
2b6870b861
|
|||
|
ceb7a74b11
|
@@ -5,12 +5,17 @@ ENV NODE_ENV=production
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk add --no-cache ffmpeg python3 make g++
|
# Copy package files first
|
||||||
|
|
||||||
# Copy package files and install only production dependencies
|
|
||||||
COPY package.json package-lock.json* .
|
COPY package.json package-lock.json* .
|
||||||
RUN npm ci --only=production --ignore-scripts && \
|
|
||||||
npm install bufferutil zlib-sync
|
# Install build dependencies, compile native modules, then remove build tools
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y ffmpeg python3 make g++ && \
|
||||||
|
npm ci --only=production --ignore-scripts && \
|
||||||
|
npm install bufferutil zlib-sync && \
|
||||||
|
apt-get remove -y python3 make g++ && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy the builded files and the charts
|
# Copy the builded files and the charts
|
||||||
COPY ./dist/* .
|
COPY ./dist/* .
|
||||||
|
|||||||
Reference in New Issue
Block a user