Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
|
@@ -3,15 +3,13 @@ FROM continuumio/miniconda3
|
|
| 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 |
|
|
|
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
WORKDIR /usr/src/app
|
| 5 |
|
| 6 |
+
COPY --link --chown=1000 ./ /usr/src/app
|
| 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 |
|