Spaces:
Sleeping
Sleeping
Commit ·
a9970f0
1
Parent(s): 7723f38
updated the code 1
Browse files- Dockerfile +4 -3
- README.md +4 -0
Dockerfile
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
# Elasticsearch 9.3.x requires Java 21 (see Elastic support matrix).
|
|
|
|
| 4 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 5 |
ca-certificates \
|
| 6 |
curl \
|
| 7 |
wget \
|
|
@@ -21,10 +23,9 @@ ENV ES_PATH_LOGS=/elasticsearch/logs
|
|
| 21 |
ENV ES_URL=http://127.0.0.1:7860/_bulk
|
| 22 |
ENV ES_HTTP_PORT=7860
|
| 23 |
|
| 24 |
-
COPY requirements.txt .
|
| 25 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 27 |
-
&& pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
RUN useradd -m -u 1000 appuser \
|
| 30 |
&& mkdir -p /elasticsearch/data /elasticsearch/logs /app \
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
# Elasticsearch 9.3.x requires Java 21 (see Elastic support matrix).
|
| 4 |
+
# Include git so Hugging Face (or custom) `RUN git config --global ...` layers do not fail with "git: not found".
|
| 5 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 6 |
+
git \
|
| 7 |
ca-certificates \
|
| 8 |
curl \
|
| 9 |
wget \
|
|
|
|
| 23 |
ENV ES_URL=http://127.0.0.1:7860/_bulk
|
| 24 |
ENV ES_HTTP_PORT=7860
|
| 25 |
|
| 26 |
+
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
| 27 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 28 |
+
&& pip install --no-cache-dir -r /tmp/requirements.txt
|
| 29 |
|
| 30 |
RUN useradd -m -u 1000 appuser \
|
| 31 |
&& mkdir -p /elasticsearch/data /elasticsearch/logs /app \
|
README.md
CHANGED
|
@@ -10,3 +10,7 @@ short_description: Elastic server
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
query using the url
|
| 16 |
+
http://localhost:9200/candidates/_search?q=derived_analysis.skills_summary.IT_System_Analysis:Advanced
|