ai-tik / Dockerfile
Reaperxxxx's picture
Update Dockerfile
2e0ebe9 verified
Raw
History Blame Contribute Delete
495 Bytes
FROM node:20
RUN apt-get update && apt-get install -y \
ffmpeg \
libavcodec-extra \
libx264-dev \
libcairo2-dev \
libjpeg-dev \
libpango1.0-dev \
libgif-dev \
librsvg2-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN chmod -R 777 /app
RUN npm install slideshow-video express axios jsonwebtoken cookie-parser canvas fluent-ffmpeg cors dotenv
RUN ffmpeg -codecs | grep h264 || true
EXPOSE 7860
CMD ["node", "server.js"]