[mirotalk] - ops

This commit is contained in:
Miroslav Pejic
2025-07-03 01:15:42 +02:00
parent e5ee320c3d
commit 4013465885
+11 -10
View File
@@ -6,24 +6,25 @@ WORKDIR /src
ENV NODE_ENV="production"
# Copy package.json and .env dependencies
# Install necessary system packages first
RUN apk add --no-cache bash vim
# Copy package.json and package-lock.json
COPY package*.json ./
RUN npm ci --only=production --silent
# Install dependencies
RUN npm ci --only=production --silent && \
npm cache clean --force
# Rename config.template.js to config.js
COPY ./app/src/config.template.js ./app/src/config.js
# Install necessary system packages and dependencies
RUN apk add --no-cache \
bash \
vim \
&& npm install \
&& npm cache clean --force \
&& rm -rf /tmp/* /var/tmp/* /usr/share/doc/*
# Copy the application code
COPY app app
COPY public public
# Clean up temporary files
RUN rm -rf /tmp/* /var/tmp/* /usr/share/doc/*
# Set default command to start the application
CMD ["npm", "start"]