Spaces:
Runtime error
Runtime error
Commit
·
ae7955c
1
Parent(s):
88c42b8
Readded user with access to the root directory
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -3,11 +3,15 @@ FROM python:3.12-bookworm
|
|
3 |
RUN apt update
|
4 |
RUN apt install -y git
|
5 |
|
6 |
-
RUN
|
|
|
|
|
|
|
7 |
|
|
|
8 |
|
9 |
-
COPY ./main.py /mteb/main.py
|
10 |
-
COPY ./requirements.txt /mteb/requirements.txt
|
11 |
RUN pip install -r /mteb/requirements.txt
|
12 |
|
13 |
WORKDIR /mteb
|
|
|
3 |
RUN apt update
|
4 |
RUN apt install -y git
|
5 |
|
6 |
+
RUN useradd -m -u 1000 user
|
7 |
+
RUN chown -R 1000 /
|
8 |
+
USER user
|
9 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
10 |
|
11 |
+
RUN git clone https://github.com/embeddings-benchmark/mteb.git
|
12 |
|
13 |
+
COPY --chown=user ./main.py /mteb/main.py
|
14 |
+
COPY --chown=user ./requirements.txt /mteb/requirements.txt
|
15 |
RUN pip install -r /mteb/requirements.txt
|
16 |
|
17 |
WORKDIR /mteb
|