Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -11,7 +11,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
|
13 |
#
|
14 |
-
USER root
|
15 |
|
16 |
#
|
17 |
COPY ./start_service.sh /code/start_service.sh
|
@@ -22,11 +22,15 @@ COPY ./app /code/app
|
|
22 |
#
|
23 |
RUN apt-get update && apt-get install -y sudo
|
24 |
|
|
|
|
|
|
|
|
|
25 |
#
|
26 |
# EXPOSE 11434
|
27 |
|
28 |
#
|
29 |
-
RUN chmod +x /code/start_service.sh
|
30 |
|
31 |
# # Run .sh file
|
32 |
CMD ["/code/start_service.sh"]
|
|
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
|
13 |
#
|
14 |
+
# USER root
|
15 |
|
16 |
#
|
17 |
COPY ./start_service.sh /code/start_service.sh
|
|
|
22 |
#
|
23 |
RUN apt-get update && apt-get install -y sudo
|
24 |
|
25 |
+
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
26 |
+
|
27 |
+
USER docker
|
28 |
+
|
29 |
#
|
30 |
# EXPOSE 11434
|
31 |
|
32 |
#
|
33 |
+
# RUN chmod +x /code/start_service.sh
|
34 |
|
35 |
# # Run .sh file
|
36 |
CMD ["/code/start_service.sh"]
|