Spaces:
Sleeping
Sleeping
| FROM ubuntu:22.04 | |
| # Set noninteractive installation | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install build dependencies and curl | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| build-essential \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libjpeg-dev \ | |
| libgif-dev \ | |
| librsvg2-dev \ | |
| python2 \ | |
| fontconfig | |
| # Download and install Node.js 12.13.0 | |
| RUN curl -fsSL https://nodejs.org/dist/v20.18.1/node-v20.18.1-linux-x64.tar.xz | tar -xJ -C /usr/local --strip-components=1 | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy the entire project including node_modules | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start command | |
| CMD ["npm", "start"] | |