Spaces:
Build error
Build error
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/mohmdali55555a/silana-lite-ofc/tree/master.git | |
# Set the working directory to the cloned repository | |
WORKDIR /app/silana-lite-ofc | |
# 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"] |