CoolFace
Apppublic

Armanifx/Deployment

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile30 linesDownload Raw Back to root
1# Use the Node.js 20 base image2FROM node:203 4# Update system packages and install FFmpeg5RUN apt-get update && apt-get install -y ffmpeg && apt-get clean6 7# Switch to non-root user8USER node9 10# Clone the repository11RUN git clone https://github.com/BASHER0706/bookie /home/node/blue12 13# Set the working directory14WORKDIR /home/node/blue15 16# Grant full permissions to the directory (optional but helps with permissions)17RUN chmod -R 777 /home/node/blue/18 19# Install dependencies20RUN yarn install && yarn add http21 22# Copy server and start script into the directory23COPY server.js .24COPY start.sh .25 26# Verify FFmpeg installation and print directory contents (for debugging purposes)27RUN ffmpeg -version && ls -la /home/node/blue28 29# Run the start script30CMD ["bash", "start.sh"]