Spaces:
Running
Running
Commit
·
cba835b
1
Parent(s):
20cc142
update
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -4,8 +4,13 @@ FROM fuxialexander/get_model:latest
|
|
| 4 |
# Set the working directory in the container to /app
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
| 8 |
|
|
|
|
| 9 |
# copy modules from local to container
|
| 10 |
COPY --chown=$MAMBA_USER:$MAMBA_USER app/main.py /app/main.py
|
| 11 |
|
|
|
|
| 4 |
# Set the working directory in the container to /app
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
|
| 8 |
+
# use MAMBA_USER to run the container
|
| 9 |
+
USER $MAMBA_USER
|
| 10 |
+
|
| 11 |
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
| 12 |
|
| 13 |
+
|
| 14 |
# copy modules from local to container
|
| 15 |
COPY --chown=$MAMBA_USER:$MAMBA_USER app/main.py /app/main.py
|
| 16 |
|