Spaces:
Sleeping
Sleeping
| FROM node:20 | |
| # Install http-server to serve the static site | |
| RUN npm install -g http-server | |
| # Build the app | |
| WORKDIR /usr/app | |
| COPY ./ /usr/app | |
| RUN npm install | |
| RUN npm run sources && npm run build | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Serve the static site from the /usr/app/build directory on host 0.0.0.0 and port 7860 | |
| CMD ["http-server", "/usr/app/build", "-a", "0.0.0.0", "-p", "7860"] |