fuxialexander commited on
Commit
20cc142
·
1 Parent(s): 4ea620d
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -1,9 +1,6 @@
1
  # This is the dockerfile for dockerhub fuxialexander/getdemo:latest
2
  FROM fuxialexander/get_model:latest
3
 
4
-
5
- USER $MAMBA_USER
6
-
7
  # Set the working directory in the container to /app
8
  WORKDIR /app
9
 
@@ -12,12 +9,8 @@ ARG MAMBA_DOCKERFILE_ACTIVATE=1
12
  # copy modules from local to container
13
  COPY --chown=$MAMBA_USER:$MAMBA_USER app/main.py /app/main.py
14
 
15
- # clean all mamba caches and remove unnecessary files
16
- RUN micromamba clean --all --yes
17
-
18
  # Make port 80 available to the world outside this container
19
  EXPOSE 7860
20
- # Set the working directory where your app resides
21
 
22
  # Command to run the Gradio app automatically
23
- CMD ["python", "main.py"]
 
1
  # This is the dockerfile for dockerhub fuxialexander/getdemo:latest
2
  FROM fuxialexander/get_model:latest
3
 
 
 
 
4
  # Set the working directory in the container to /app
5
  WORKDIR /app
6
 
 
9
  # copy modules from local to container
10
  COPY --chown=$MAMBA_USER:$MAMBA_USER app/main.py /app/main.py
11
 
 
 
 
12
  # Make port 80 available to the world outside this container
13
  EXPOSE 7860
 
14
 
15
  # Command to run the Gradio app automatically
16
+ CMD ["/opt/conda/bin/python", "main.py"]