yjernite commited on
Commit
d41c2be
·
1 Parent(s): 6c067aa

chore: switch to static sdk deployment and cleanup large files

Browse files
Files changed (5) hide show
  1. .dockerignore +0 -3
  2. .gitignore +2 -1
  3. Caddyfile +0 -5
  4. Dockerfile +0 -14
  5. README.md +3 -2
.dockerignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules
2
- dist
3
- competition_ai_book/_build
 
 
 
 
.gitignore CHANGED
@@ -6,4 +6,5 @@ python/**/__pycache__
6
 
7
  # MyST build output - built automatically in Spaces
8
  dist/
9
- competition_ai_book/_build/
 
 
6
 
7
  # MyST build output - built automatically in Spaces
8
  dist/
9
+ competition_ai_book/_build/
10
+ _build/
Caddyfile DELETED
@@ -1,5 +0,0 @@
1
- :3000 {
2
- root * /srv
3
- try_files {path} {path}/ {path}/index.html /index.html
4
- file_server
5
- }
 
 
 
 
 
 
Dockerfile DELETED
@@ -1,14 +0,0 @@
1
- FROM node:20-alpine AS builder
2
- RUN apk add --no-cache bash
3
- WORKDIR /app
4
- COPY package.json package-lock.json* ./
5
- RUN npm install
6
- COPY . .
7
- RUN npm run build:book
8
-
9
- FROM caddy:2-alpine
10
- WORKDIR /srv
11
- COPY --from=builder /app/dist /srv
12
- RUN touch /srv/favicon.ico
13
- COPY Caddyfile /etc/caddy/Caddyfile
14
- EXPOSE 3000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -3,14 +3,15 @@ title: Competition and Concentration in AI
3
  emoji: 🌍
4
  colorFrom: green
5
  colorTo: purple
6
- sdk: docker
7
- app_port: 3000
8
  pinned: false
9
  license: apache-2.0
10
  header: mini
11
  thumbnail: >-
12
  https://huggingface.co/spaces/nanotron/distill-blog-template/resolve/main/thumbnail.png
13
  short_description: Long-form analysis of competition dynamics in AI
 
 
14
  ---
15
 
16
  ## About
 
3
  emoji: 🌍
4
  colorFrom: green
5
  colorTo: purple
6
+ sdk: static
 
7
  pinned: false
8
  license: apache-2.0
9
  header: mini
10
  thumbnail: >-
11
  https://huggingface.co/spaces/nanotron/distill-blog-template/resolve/main/thumbnail.png
12
  short_description: Long-form analysis of competition dynamics in AI
13
+ app_file: dist/index.html
14
+ app_build_command: ./build-book.sh
15
  ---
16
 
17
  ## About