Skip to content

Commit 0c8af5b

Browse files
authored
🔨 add nexent dependency for data_process
🔨 add nexent dependency for data_process
2 parents 3df8fff + c1f5e0c commit 0c8af5b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

make/data_process/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM downloads.unstructured.io/unstructured-io/unstructured:latest
2+
23
LABEL authors="nexent"
34

45
# Set correct permissions as root
@@ -10,6 +11,14 @@ RUN chown -R notebook-user:notebook-user /opt/sdk
1011
RUN chmod +x /opt/backend/data_process_service.py
1112

1213
WORKDIR /opt
14+
1315
USER notebook-user
16+
RUN pip config --user set global.progress_bar off
17+
RUN pip install --user --no-cache-dir -r backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple
18+
RUN cd /opt/sdk && pip install . -i https://mirrors.aliyun.com/pypi/simple
19+
20+
# Expose the service port
1421
EXPOSE 5002
15-
ENTRYPOINT ["python", "/opt/backend/data_process_service.py"]
22+
23+
# 设置启动入口
24+
ENTRYPOINT ["python", "/opt/backend/data_process_service.py"]

0 commit comments

Comments
 (0)