File size: 1,156 Bytes
cca72ca
 
8bdf52a
9a25e9f
 
12761b6
a2aa777
e18b317
cba835b
8bdf52a
 
cca72ca
e18b317
cca72ca
 
 
8bdf52a
64cee5e
 
 
 
e18b317
 
4971d57
 
695cbda
e18b317
695cbda
e18b317
8bdf52a
20cc142
64cee5e
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
31
32
33
# This is the dockerfile for dockerhub fuxialexander/getdemo:latest
FROM fuxialexander/get_model:latest

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

# Comment out or remove the line below to use the root user
USER $MAMBA_USER

ARG MAMBA_DOCKERFILE_ACTIVATE=1

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

# Make port 80 available to the world outside this container
EXPOSE 7860

# Set environment variable for Matplotlib cache directory
ENV MPLCONFIGDIR=/app/matplotlib_cache

# Create the directory for Matplotlib cache
USER root
RUN mkdir -p /app/matplotlib_cache && chown $MAMBA_USER:$MAMBA_USER /app/matplotlib_cache
# download https://zenodo.org/records/14615146/files/gcell_data.tar.gz?download=1 extract it and copy it to /app/.gcell_data
RUN wget https://zenodo.org/records/14615146/files/gcell_data.tar.gz?download=1 -O /app/gcell_data.tar.gz
RUN tar -xzvf gcell_data.tar.gz && mv gcell_data/ .gcell_data && rm gcell_data.tar.gz && cd ..
RUN chmod -R 777 /app/

USER $MAMBA_USER
# Command to run the Gradio app automatically
CMD ["/opt/conda/bin/python", "main.py"]