tastelikefeet commited on
Commit
edd3a67
·
verified ·
1 Parent(s): 4c77a03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -2,6 +2,12 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  curl \
7
  wget \
@@ -35,4 +41,4 @@ RUN git clone https://github.com/modelscope/mcp-central.git
35
 
36
  WORKDIR /app/mcp-central/examples/lite_research
37
 
38
- ENTRYPOINT ['python', 'app.py']
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+ ENV PATH="/home/user/.local/bin:$PATH"
8
+
9
+ COPY --chown=user . /app
10
+
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  curl \
13
  wget \
 
41
 
42
  WORKDIR /app/mcp-central/examples/lite_research
43
 
44
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]