Spaces:
Build error
Build error
Zerotracex-Stuff commited on
Commit ·
12ab17b
1
Parent(s): b601d38
First model version
Browse filesFiles changed (4)
- Dockerfile+5-5
- README.md+4-9
- package.json+2-1
- server.jsDeleted-17
1232 unmodified lines67891011121314151617181 unmodified line2021222324# Use the official Node.js image as the base imageFROM node:20-slim2 unmodified lines# Copy package.json and package-lock.json to the working directoryCOPY package*.json ./# Copy the rest of the application code to the working directoryCOPY . .# Install dependenciesRUN npm install# Build the Next.js applicationRUN npm run build1 unmodified line# Expose the port your app runs on. Use 7860 as per the user's requirement.EXPOSE 7860# Command to run the custom Next.js serverCMD ["node", "server.js"]12342 unmodified lines7891011121314151617181 unmodified line2021222324# Use the official Node.js image as the base imageFROM node:20-slim2 unmodified lines# Copy package.json and package-lock.json to the working directoryCOPY package*.json ./# Install dependenciesRUN npm install# Copy the rest of the application code to the working directoryCOPY . .# Build the Next.js applicationRUN npm run build1 unmodified line# Expose the port your app runs on. Use 7860 as per the user's requirement.EXPOSE 7860# Command to run the applicationCMD ["npm", "start", "--", "-p", "7860"]
12345678910---title: Docsemoji: 👁colorFrom: purplecolorTo: purplesdk: dockerpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345# Firebase StudioThis is a NextJS starter in Firebase Studio.To get started, take a look at src/app/page.tsx.
1233 unmodified lines78910111213{"name": "nextn","version": "0.1.0",3 unmodified lines"genkit:dev": "genkit start -- tsx src/ai/dev.ts","genkit:watch": "genkit start -- tsx --watch src/ai/dev.ts","build": "next build","start": "NODE_ENV=production node server.js","lint": "next lint","typecheck": "tsc --noEmit","postinstall": "cp node_modules/pdfjs-dist/build/pdf.worker.min.js public/"12343 unmodified lines891011121314{"name": "nextn","version": "0.1.0",3 unmodified lines"genkit:dev": "genkit start -- tsx src/ai/dev.ts","genkit:watch": "genkit start -- tsx --watch src/ai/dev.ts","build": "next build","start": "next start","lint": "next lint","typecheck": "tsc --noEmit","postinstall": "cp node_modules/pdfjs-dist/build/pdf.worker.min.js public/"
1234567891011121314151617const { createServer } = require('http');const { parse } = require('url');const next = require('next');
const port = parseInt(process.env.PORT, 10) || 7860;const dev = process.env.NODE_ENV !== 'production';const app = next({ dev });const handle = app.getRequestHandler();
app.prepare().then(() => { createServer((req, res) => { const parsedUrl = parse(req.url, true); handle(req, res, parsedUrl); }).listen(port, () => { console.log(`🚀 App running on http://localhost:${port}`); });});Dockerfile+5-5
README.md+4-9
package.json+2-1
server.jsDeleted-17