Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
|
|
|
|
|
|
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 |
-
|
20 |
-
|
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"]
|