Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -20
Dockerfile
CHANGED
@@ -87,29 +87,10 @@ RUN if [ "$INSTALL_TYPE" = "all" ] ; then \
|
|
87 |
python -m nltk.downloader punkt stopwords ; \
|
88 |
fi
|
89 |
|
90 |
-
# Install the package
|
91 |
-
RUN if [ "$INSTALL_TYPE" = "all" ] ; then \
|
92 |
-
pip install ".[all]" && \
|
93 |
-
python -m crawl4ai.model_loader ; \
|
94 |
-
elif [ "$INSTALL_TYPE" = "torch" ] ; then \
|
95 |
-
pip install ".[torch]" ; \
|
96 |
-
elif [ "$INSTALL_TYPE" = "transformer" ] ; then \
|
97 |
-
pip install ".[transformer]" && \
|
98 |
-
python -m crawl4ai.model_loader ; \
|
99 |
-
else \
|
100 |
-
pip install "." ; \
|
101 |
-
fi
|
102 |
-
|
103 |
-
|
104 |
|
105 |
# Install Playwright and browsers
|
106 |
-
RUN
|
107 |
-
playwright install chromium; \
|
108 |
-
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
|
109 |
-
playwright install chromium; \
|
110 |
-
fi
|
111 |
|
112 |
-
# Expose port
|
113 |
EXPOSE 8000 11235 9222 8080
|
114 |
|
115 |
# Start the FastAPI server
|
|
|
87 |
python -m nltk.downloader punkt stopwords ; \
|
88 |
fi
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
# Install Playwright and browsers
|
92 |
+
RUN playwright install chromium
|
|
|
|
|
|
|
|
|
93 |
|
|
|
94 |
EXPOSE 8000 11235 9222 8080
|
95 |
|
96 |
# Start the FastAPI server
|