Spaces:
Running
Running
simonduerr
commited on
Commit
•
87ab599
1
Parent(s):
8b16c9c
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -2,14 +2,16 @@ 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 |
|
|
|
2 |
|
3 |
RUN useradd -m -u 1000 user
|
4 |
WORKDIR /usr/src/app
|
|
|
5 |
|
|
|
6 |
|
7 |
# install dependcies
|
8 |
RUN conda install -y pandas numpy scikit-learn
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
+
# copy files from app
|
12 |
+
COPY --link --chown=1000 ./ /usr/src/app
|
13 |
+
COPY . .
|
14 |
+
|
15 |
#if you need to download executable and run them switch to the default non-root user
|
16 |
USER user
|
17 |
|