api / Dockerfile
ilhamdev's picture
Update Dockerfile
41816e7 verified
raw
history blame
511 Bytes
FROM node:latest
RUN apt-get update && \
apt-get install -y curl && \
curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -o ffmpeg.tar.xz && \
tar -xf ffmpeg.tar.xz && \
rm ffmpeg.tar.xz && \
mv ffmpeg-*-static/ffmpeg /usr/local/bin/ && \
rm -rf ffmpeg-*-static && \
apt-get remove -y curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
EXPOSE 7860
CMD ["node", "index.js"]