npc0 commited on
Commit
931303a
·
verified ·
1 Parent(s): 8b7637d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -10
Dockerfile CHANGED
@@ -4,23 +4,22 @@
4
  FROM python:3.11
5
  RUN pip install --no-cache-dir --upgrade pip
6
 
7
- RUN mkdir /dep
 
 
 
8
  WORKDIR /dep
9
  RUN git clone https://github.com/jaigouk/claude-proxy-api.git
10
  WORKDIR /dep/claude-proxy-api
11
  RUN pip install -r requirements.txt
12
- COPY proxy.env ./.env
13
 
14
  WORKDIR /app
15
 
16
- COPY ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
-
19
- RUN mkdir -p ./ragtest/input
20
- RUN curl https://secure.ssa.gov/apps10/poms.nsf/lnx/0500502100 > ./ragtest/input/ref.txt
21
- RUN curl https://huggingface.co/spaces/npc0/POM-QA/resolve/main/knowledge_extraction.csv > ./ragtest/input/book.txt
22
- COPY ./settings.yaml /app
23
- COPY ./app.py /app
24
- COPY ./run.sh run.sh
25
  RUN chmod +x run.sh
26
  ENTRYPOINT ["/app/run.sh"]
 
4
  FROM python:3.11
5
  RUN pip install --no-cache-dir --upgrade pip
6
 
7
+ RUN useradd -m -u 1000 user
8
+ USER user
9
+ ENV PATH="/home/user/.local/bin:$PATH"
10
+
11
  WORKDIR /dep
12
  RUN git clone https://github.com/jaigouk/claude-proxy-api.git
13
  WORKDIR /dep/claude-proxy-api
14
  RUN pip install -r requirements.txt
15
+ COPY --chown=user proxy.env ./.env
16
 
17
  WORKDIR /app
18
 
19
+ COPY --chown=user ./requirements.txt requirements.txt
20
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
21
+ COPY --chown=user ./settings.yaml /app
22
+ COPY --chown=user ./app.py /app
23
+ COPY --chown=user ./run.sh run.sh
 
 
 
 
24
  RUN chmod +x run.sh
25
  ENTRYPOINT ["/app/run.sh"]