Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -14,6 +14,8 @@ RUN apt-get update --fix-missing \
|
|
14 |
RUN useradd -m -u 1000 user
|
15 |
USER user
|
16 |
|
|
|
|
|
17 |
WORKDIR /tmp
|
18 |
|
19 |
ADD requirements.txt /tmp/requirements.txt
|
@@ -21,6 +23,8 @@ ADD requirements.txt /tmp/requirements.txt
|
|
21 |
RUN /usr/bin/python3 -m pip install --upgrade pip \
|
22 |
&& /usr/bin/python3 -m pip install -r /tmp/requirements.txt
|
23 |
|
|
|
|
|
24 |
ADD compute_model_property.py /tmp/compute_model_property.py
|
25 |
|
26 |
#ENTRYPOINT ["python3", "/tmp/compute_model_property.py"]
|
|
|
14 |
RUN useradd -m -u 1000 user
|
15 |
USER user
|
16 |
|
17 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
18 |
+
|
19 |
WORKDIR /tmp
|
20 |
|
21 |
ADD requirements.txt /tmp/requirements.txt
|
|
|
23 |
RUN /usr/bin/python3 -m pip install --upgrade pip \
|
24 |
&& /usr/bin/python3 -m pip install -r /tmp/requirements.txt
|
25 |
|
26 |
+
RUN pip install fastapi uvicorn
|
27 |
+
|
28 |
ADD compute_model_property.py /tmp/compute_model_property.py
|
29 |
|
30 |
#ENTRYPOINT ["python3", "/tmp/compute_model_property.py"]
|