Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +10 -27
Dockerfile
CHANGED
|
@@ -1,31 +1,14 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM node:18-slim
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
RUN
|
|
|
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
git \
|
| 10 |
-
curl \
|
| 11 |
-
bash \
|
| 12 |
-
ca-certificates \
|
| 13 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
RUN
|
| 17 |
-
chown -R firecrawl:firecrawl /home/firecrawl
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
| 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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|