Nanny7 commited on
Commit
cf48395
·
1 Parent(s): 0792edb

Fix: Add .dockerignore and improve Docker build logging

Browse files
Files changed (2) hide show
  1. .dockerignore +19 -0
  2. Dockerfile +4 -10
.dockerignore ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ node_modules
2
+ npm-debug.log
3
+ .git
4
+ .gitignore
5
+ *.md
6
+ .env
7
+ .env.local
8
+ .env.*.local
9
+ .Dockerfile
10
+ .dockerignore
11
+ .qoder
12
+ .vscode
13
+ .idea
14
+ *.log
15
+ .DS_Store
16
+ Thumbs.db
17
+ .next
18
+ out
19
+ build
Dockerfile CHANGED
@@ -1,26 +1,20 @@
1
  # Education Platform - HuggingFace Spaces Dockerfile
2
  FROM node:20-bullseye
3
 
4
- # Install dependencies
5
- RUN apt-get update && apt-get install -y \
6
- git \
7
- curl \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
  # Set working directory
11
  WORKDIR /app
12
 
13
  # Copy package files
14
  COPY package*.json ./
15
 
16
- # Install dependencies
17
- RUN npm ci
18
 
19
  # Copy source code
20
  COPY . .
21
 
22
- # Build the application
23
- RUN npm run build
24
 
25
  # Create data directory for persistent storage
26
  RUN mkdir -p /data/sessions /data/uploads
 
1
  # Education Platform - HuggingFace Spaces Dockerfile
2
  FROM node:20-bullseye
3
 
 
 
 
 
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
  # Copy package files
8
  COPY package*.json ./
9
 
10
+ # Install dependencies with verbose output
11
+ RUN npm ci --verbose
12
 
13
  # Copy source code
14
  COPY . .
15
 
16
+ # Build the application with progress output
17
+ RUN npm run build -- --debug
18
 
19
  # Create data directory for persistent storage
20
  RUN mkdir -p /data/sessions /data/uploads