Suppression packages build
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 13m19s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 13m19s
This commit is contained in:
@@ -5,15 +5,18 @@ ENV NODE_ENV=production
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy package files first
|
||||||
|
COPY package.json package-lock.json* .
|
||||||
|
|
||||||
|
# Install build dependencies, compile native modules, then remove build tools
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y ffmpeg python3 make g++ && \
|
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/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy package files and install only production dependencies
|
|
||||||
COPY package.json package-lock.json* .
|
|
||||||
RUN npm ci --only=production --ignore-scripts && \
|
|
||||||
npm install bufferutil zlib-sync
|
|
||||||
|
|
||||||
# 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