NitinBot001 commited on
Commit
e1fd6f5
·
verified ·
1 Parent(s): 677372d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -27
Dockerfile CHANGED
@@ -1,31 +1,14 @@
1
- # Minimal Dockerfile for Hugging Face Spaces - Non-root setup
2
- FROM node:18-slim
3
 
4
- # Create non-root user
5
- RUN groupadd -r firecrawl && useradd -r -g firecrawl -m firecrawl
 
6
 
7
- # Install only essential system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- git \
10
- curl \
11
- bash \
12
- ca-certificates \
13
- && rm -rf /var/lib/apt/lists/*
14
 
15
- # Create app directory and set permissions
16
- RUN mkdir -p /home/firecrawl/app && \
17
- chown -R firecrawl:firecrawl /home/firecrawl
18
 
19
- # Switch to non-root user
20
- USER firecrawl
21
- WORKDIR /home/firecrawl/app
22
-
23
- # Copy the setup script
24
- COPY --chown=firecrawl:firecrawl setup-firecrawl.sh /home/firecrawl/app/
25
- RUN chmod +x setup-firecrawl.sh
26
-
27
- # Expose the port that HF Spaces expects
28
- EXPOSE 7860
29
-
30
- # Run the setup script which handles everything
31
- CMD ["./setup-firecrawl.sh"]
 
1
+ FROM docker:27-cli # Docker CLI only (lighter than full dind)
 
2
 
3
+ # Install dependencies: git, python3, pip, and docker-compose
4
+ RUN apk add --no-cache git py3-pip python3 \
5
+ && pip install docker-compose
6
 
7
+ # Set working directory
8
+ WORKDIR /app
 
 
 
 
 
9
 
10
+ # Clone the Firecrawl repository
11
+ RUN git clone https://github.com/firecrawl/firecrawl.git .
 
12
 
13
+ # Default command to run docker-compose
14
+ CMD ["docker-compose", "up"]