Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -8,13 +8,13 @@ WORKDIR /code
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
18 |
# RUN chown -R user:user models
|
19 |
# RUN chmod +w models
|
20 |
# RUN chmod 777 models
|
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
+
RUN useradd -m -u 1000 user
|
12 |
+
USER user
|
13 |
+
ENV HOME=/home/user \
|
14 |
+
PATH=/home/user/.local/bin:$PATH
|
15 |
|
16 |
+
WORKDIR $HOME/app
|
17 |
+
COPY --chown=user . $HOME/app
|
18 |
# RUN chown -R user:user models
|
19 |
# RUN chmod +w models
|
20 |
# RUN chmod 777 models
|