Spaces:
Sleeping
Sleeping
simonduerr
commited on
Commit
•
bb08748
1
Parent(s):
6242bac
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
FROM continuumio/miniconda3
|
2 |
|
|
|
3 |
WORKDIR /usr/src/app
|
|
|
|
|
4 |
COPY . .
|
|
|
5 |
# install dependcies
|
6 |
RUN conda install -y pandas numpy scikit-learn
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
8 |
EXPOSE 7860
|
9 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
10 |
|
11 |
-
CMD ["python", "inference_app.py"]
|
|
|
1 |
FROM continuumio/miniconda3
|
2 |
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
WORKDIR /usr/src/app
|
5 |
+
COPY --link --chown=1000 ./ /usr/src/app
|
6 |
+
USER user
|
7 |
COPY . .
|
8 |
+
|
9 |
# install dependcies
|
10 |
RUN conda install -y pandas numpy scikit-learn
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
|
14 |
+
#do not modify below
|
15 |
EXPOSE 7860
|
16 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
17 |
|
18 |
+
CMD ["python", "inference_app.py"]
|