Files
mirotalk/Dockerfile
T
Miroslav Pejic cd1e60977d [mirotalk] - wtf
2025-07-03 01:32:21 +02:00

27 lines
636 B
Docker

# Use a lightweight Node.js image https://hub.docker.com/_/node
FROM node:22-alpine
# Set working directory
WORKDIR /src
# Copy package.json and .env dependencies
COPY package*.json .
COPY .env.template ./.env
# 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 ci \
&& npm cache clean --force \
&& rm -rf /tmp/* /var/tmp/* /usr/share/doc/*
# Copy the application code
COPY app app
COPY public public
# Set default command to start the application
CMD ["npm", "start"]