npc0 commited on
Commit
8b7637d
·
verified ·
1 Parent(s): 422fa56

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -8,23 +8,19 @@ 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
-
12
- RUN useradd -m -u 1000 user
13
- USER user
14
- ENV PATH="/home/user/.local/bin:$PATH"
15
  RUN pip install -r requirements.txt
16
- COPY --chown=user proxy.env ./.env
17
 
18
  WORKDIR /app
19
 
20
- COPY --chown=user ./requirements.txt requirements.txt
21
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
 
23
  RUN mkdir -p ./ragtest/input
24
- # RUN curl https://secure.ssa.gov/apps10/poms.nsf/lnx/0500502100 > ./ragtest/input/book.txt
25
  RUN curl https://huggingface.co/spaces/npc0/POM-QA/resolve/main/knowledge_extraction.csv > ./ragtest/input/book.txt
26
- COPY --chown=user ./settings.yaml /app
27
- COPY --chown=user ./app.py /app
28
- COPY --chown=user ./run.sh run.sh
29
  RUN chmod +x run.sh
30
  ENTRYPOINT ["/app/run.sh"]
 
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"]