adowu commited on
Commit
8894de7
·
verified ·
1 Parent(s): 5c561c0

Deploy from GitHub via GH -> HF Deployer

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -0
  2. README.md +13 -5
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Auto-generated by GH -> HF Spaces Deployer
2
+ FROM node:20-slim
3
+
4
+ ENV NODE_ENV=production PORT=7860 HOST=0.0.0.0
5
+
6
+ WORKDIR /app
7
+
8
+ RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Clone the source repository at build time.
11
+ RUN git clone --depth 1 --branch main https://github.com/vercel/next-forge.git /app
12
+
13
+ # Install dependencies (uses lockfile when present).
14
+ RUN if [ -f package-lock.json ]; then npm_config_production=false npm ci || npm_config_production=false npm install; elif [ -f yarn.lock ]; then corepack enable && corepack prepare yarn@1.22.22 --activate && yarn install; elif [ -f pnpm-lock.yaml ]; then corepack enable && corepack prepare pnpm@8.15.6 --activate && pnpm install; else npm install; fi
15
+
16
+ # Build step if a build script exists.
17
+ RUN npm run build --if-present
18
+
19
+ EXPOSE 7860
20
+
21
+ CMD ["node", "index.js"]
README.md CHANGED
@@ -1,10 +1,18 @@
1
  ---
2
- title: Next Forge
3
- emoji: 🐨
4
- colorFrom: red
5
- colorTo: yellow
6
  sdk: docker
 
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
1
  ---
2
+ title: next-forge
3
+ emoji: 🚀
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  ---
10
 
11
+ # next-forge
12
+
13
+ Production-grade Turborepo template for Next.js apps.
14
+
15
+ **Source:** [https://github.com/vercel/next-forge](https://github.com/vercel/next-forge)
16
+
17
+ This Space was created with the GitHub → Hugging Face Spaces Deployer.
18
+ The container clones the source repository at build time and runs it in Docker mode.