# Use the official Python 3.9 image FROM nikolaik/python-nodejs:python3.11-nodejs21 # Copy the current directory contents into the container COPY . /app RUN chmod -R 777 /app/* # Go into the front directory WORKDIR /app/front # RUN chmod -R 777 /app/* # Run npm install RUN npm install RUN npm run build # Go back to the root directory WORKDIR /app # Go into the api directory WORKDIR /app/back RUN apt-get update RUN apt-get install cmake -y RUN apt install unzip RUN apt-get install 'ffmpeg' -y RUN unzip output/checkpoints/model.zip -d output/checkpoints/model # Install requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt EXPOSE 7860 CMD ["python", "main.py"]