Spaces:
Paused
Paused
| FROM node:latest | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| gnupg \ | |
| ca-certificates \ | |
| apt-transport-https \ | |
| chromium \ | |
| chromium-driver \ | |
| xvfb \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ENV CHROME_BIN=/usr/bin/chromium | |
| WORKDIR /app | |
| # Clone repository | |
| RUN git clone https://github.com/zennn08/akinator-server-api . | |
| RUN npm install | |
| RUN npm run build | |
| COPY . . | |
| # Set environment variable for the app port | |
| ENV PORT=7860 | |
| # Expose the port | |
| EXPOSE 7860 | |
| CMD ["node", "dist/index.js"] |