barreloflube commited on
Commit
a20dc6e
·
1 Parent(s): 2db575b

chore: Remove deployment configuration files

Browse files
Files changed (3) hide show
  1. .github/workflows/main.yml +0 -26
  2. Dockerfile +0 -26
  3. nginx.conf +0 -31
.github/workflows/main.yml DELETED
@@ -1,26 +0,0 @@
1
- name: Sync to Hugging Face hub
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- # to run this workflow manually from the Actions tab
7
- workflow_dispatch:
8
-
9
- jobs:
10
- sync-to-hub:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout main branch
14
- uses: actions/checkout@v3
15
- with:
16
- ref: main
17
- fetch-depth: 0
18
- lfs: true
19
-
20
- - name: Push to Hugging Face Hub
21
- env:
22
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
23
- run: |
24
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
25
- git config --global user.name "GitHub Actions"
26
- git push --force https://mantrakp:[email protected]/spaces/mantrakp/sheer main:main
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Dockerfile DELETED
@@ -1,26 +0,0 @@
1
- # use the official Bun image
2
- FROM oven/bun:1
3
- WORKDIR /app
4
-
5
- # Copy package files
6
- COPY package.json bun.lock ./
7
-
8
- # Install ALL dependencies (including dev dependencies)
9
- RUN bun install --frozen-lockfile --non-interactive
10
-
11
- # Copy all project files
12
- COPY . .
13
-
14
- # Set production environment and build
15
- ENV NODE_ENV=production
16
- RUN bun run build
17
-
18
- # Move Vite from devDependencies to dependencies for the preview server
19
- # This ensures Vite is available at runtime in production environments
20
- RUN bun add vite @vitejs/plugin-react
21
-
22
- # Expose the port that the app will run on
23
- EXPOSE 7860
24
-
25
- # Use the preview command directly with Bun to avoid any script-related issues
26
- CMD ["bun", "run", "--bun", "vite", "preview", "--host", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
nginx.conf DELETED
@@ -1,31 +0,0 @@
1
- server {
2
- listen 7860;
3
- listen [::]:7860;
4
-
5
- root /usr/share/nginx/html;
6
- index index.html;
7
-
8
- # Gzip compression
9
- gzip on;
10
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
11
-
12
- # Cache static assets
13
- location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
14
- expires 30d;
15
- add_header Cache-Control "public, max-age=2592000";
16
- }
17
-
18
- # Handle SPA routing - redirect all requests to index.html
19
- location / {
20
- try_files $uri $uri/ /index.html;
21
- }
22
-
23
- # Don't cache index.html
24
- location = /index.html {
25
- add_header Cache-Control "no-cache, no-store, must-revalidate";
26
- expires 0;
27
- }
28
-
29
- # Handle 404 errors
30
- error_page 404 /index.html;
31
- }