File size: 677 Bytes
f0b16b9
7b04c5f
c766d65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7b04c5f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This is the dockerfile for dockerhub fuxialexander/getdemo:latest
FROM fuxialexander/get_model:latest


USER root
RUN usermod -u 1000 $MAMBA_USER
USER $MAMBA_USER

# Set the working directory in the container to /app
WORKDIR /app

ARG MAMBA_DOCKERFILE_ACTIVATE=1

USER $MAMBA_USER

# copy modules from local to container
COPY --chown=$MAMBA_USER:$MAMBA_USER app /app/app

# clean all mamba caches and remove unnecessary files
RUN micromamba clean --all --yes

WORKDIR /app

# Make port 80 available to the world outside this container
EXPOSE 7860
# Set the working directory where your app resides

# Command to run the Gradio app automatically
CMD ["python", "app/main.py"]