Spaces:
Running
on
L4
Running
on
L4
Update Dockerfile
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -1,10 +1,19 @@
|
|
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 |
|
|
|
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 |
+
|
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 |
+
#if you need to download executable and run them switch to the default non-root user
|
14 |
+
USER user
|
15 |
+
|
16 |
+
#do not modify below
|
17 |
EXPOSE 7860
|
18 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
19 |
|