Files
bot_Tamiseur/build/node.dockerfile
Zachary Guénot ceb7a74b11
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Modif apk en apt
2025-06-10 13:00:26 +02:00

26 lines
541 B
Docker

# Starting from node
FROM node:22-slim
ENV NODE_ENV=production
WORKDIR /app
RUN apt-get update && \
apt-get install -y ffmpeg python3 make g++ && \
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 ./dist/* .
# Set the permissions
RUN chown -R node:node /app
USER node
# Start the application
CMD ["npm", "start"]