| FROM node:18 | |
| WORKDIR /app | |
| # Copy only package.json and yarn.lock into /app | |
| COPY package.json /app/ | |
| # Install dependencies in /app | |
| RUN yarn install | |
| # Clone the GitHub repository into /app/session | |
| RUN git clone https://github.com/reaperofssa/Session /app/session | |
| # Copy everything else from the current directory to the container's /app directory | |
| COPY . /app | |
| # Make everything executable | |
| RUN chmod -R 777 /app | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Set the entrypoint to the start.sh script | |
| CMD ["bash", "/app/start.sh"] |