Simo / Dockerfile
Mohakobi79's picture
Create Dockerfile
0681f2c verified
Raw History Blame Contribute Delete
598 Bytes
FROM node:lts-buster
# Install required packages
RUN apt-get update && \
apt-get install -y \
git \
ffmpeg \
imagemagick \
webp && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Clone the repository
RUN git clone https://github.com/mohakobi7/KOBY-SM.git
# Set the working directory to the cloned repository
WORKDIR /app/KOBY-SM
# Grant permissions, clear cache, and install dependencies
RUN chmod -R 777 /app && \
npm cache clean --force && \
npm install --force
# Start the application
CMD ["npm", "start"]