Spaces:
Sleeping
Sleeping
add non root user
Browse files- Dockerfile +2 -13
Dockerfile
CHANGED
@@ -4,14 +4,9 @@ ENV PIP_DEFAULT_TIMEOUT=300
|
|
4 |
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y \
|
7 |
-
# General dependencies
|
8 |
locales \
|
9 |
locales-all && \
|
10 |
-
# Clean local repository of package files since they won't be needed anymore.
|
11 |
-
# Make sure this line is called after all apt-get update/install commands have
|
12 |
-
# run.
|
13 |
apt-get clean && \
|
14 |
-
# Also delete the index files which we also don't need anymore.
|
15 |
rm -rf /var/lib/apt/lists/* \
|
16 |
|
17 |
ENV LC_ALL en_US.UTF-8
|
@@ -21,14 +16,8 @@ ENV LANGUAGE en_US.UTF-8
|
|
21 |
COPY requirements.txt .
|
22 |
RUN pip install -r requirements.txt
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
# mkdir -p /home/mesop/.cache/huggingface && \
|
27 |
-
# chown -R mesop:mesop /home/mesop \
|
28 |
-
#
|
29 |
-
#ENV HF_HOME=/home/mesop/.cache/huggingface
|
30 |
-
#
|
31 |
-
#USER mesop
|
32 |
|
33 |
COPY . /finance-rag-chatbot-group39
|
34 |
WORKDIR /finance-rag-chatbot-group39
|
|
|
4 |
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y \
|
|
|
7 |
locales \
|
8 |
locales-all && \
|
|
|
|
|
|
|
9 |
apt-get clean && \
|
|
|
10 |
rm -rf /var/lib/apt/lists/* \
|
11 |
|
12 |
ENV LC_ALL en_US.UTF-8
|
|
|
16 |
COPY requirements.txt .
|
17 |
RUN pip install -r requirements.txt
|
18 |
|
19 |
+
RUN groupadd -g 900 mesop && useradd -u 900 -s /bin/bash -g mesop mesop
|
20 |
+
USER mesop
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
COPY . /finance-rag-chatbot-group39
|
23 |
WORKDIR /finance-rag-chatbot-group39
|