Spaces:
Running
Running
Merge branch 'master' of github.com:fuxialexander/getdemo
Browse files- .github/workflows/docker-build-and-push.yml +1 -0
- Dockerfile +5 -49
- Dockerfile-dockerhub +60 -0
- modules/proscope +1 -1
.github/workflows/docker-build-and-push.yml
CHANGED
@@ -32,4 +32,5 @@ jobs:
|
|
32 |
with:
|
33 |
context: .
|
34 |
push: true
|
|
|
35 |
tags: fuxialexander/getdemo:latest
|
|
|
32 |
with:
|
33 |
context: .
|
34 |
push: true
|
35 |
+
file: ./Dockerfile-dockerhub
|
36 |
tags: fuxialexander/getdemo:latest
|
Dockerfile
CHANGED
@@ -1,60 +1,16 @@
|
|
1 |
-
#
|
2 |
-
FROM
|
3 |
|
4 |
-
|
5 |
-
USER root
|
6 |
-
RUN usermod -u 1000 $MAMBA_USER
|
7 |
USER $MAMBA_USER
|
8 |
-
|
9 |
# Set the working directory in the container to /app
|
10 |
WORKDIR /app
|
11 |
-
# Create a new environment using mamba with specified packages
|
12 |
-
RUN micromamba install -n base -c conda-forge -c bioconda -y python=3.10 pip biopython s3fs
|
13 |
-
RUN micromamba install -n base -c conda-forge -c bioconda -y nglview tqdm matplotlib pandas
|
14 |
-
RUN micromamba install -n base -c conda-forge -c bioconda -y openpyxl pyarrow python-box xmlschema seaborn numpy py3Dmol pyranges scipy pyyaml zarr numcodecs
|
15 |
-
RUN micromamba install -n base -c conda-forge -c bioconda -y pybigwig networkx plotly pysam requests seqlogo MOODS urllib3 pyliftover gprofiler-official pyfaidx
|
16 |
-
RUN micromamba install -n base -c conda-forge -y dash-bio
|
17 |
|
18 |
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
19 |
-
# Activate the environment and install additional packages via pip
|
20 |
-
RUN pip3 install gradio
|
21 |
-
USER root
|
22 |
-
RUN mkdir /data
|
23 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
24 |
-
git \
|
25 |
-
ssh \
|
26 |
-
&& apt-get clean \
|
27 |
-
&& rm -rf /var/lib/apt/lists/*
|
28 |
-
|
29 |
-
USER $MAMBA_USER
|
30 |
-
|
31 |
-
# copy modules from local to container
|
32 |
-
COPY --chown=$MAMBA_USER:$MAMBA_USER modules /app/modules
|
33 |
-
|
34 |
-
# copy modules from local to container
|
35 |
-
COPY --chown=$MAMBA_USER:$MAMBA_USER app /app/app
|
36 |
-
|
37 |
-
# copy modules from local to container
|
38 |
-
# COPY --chown=$MAMBA_USER:$MAMBA_USER data /app/data
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
RUN cd modules/proscope && \
|
43 |
-
pip3 install .
|
44 |
-
|
45 |
-
RUN cd modules/atac_rna_data_processing && \
|
46 |
-
pip3 install .
|
47 |
-
|
48 |
-
# clean all mamba caches and remove unnecessary files
|
49 |
-
RUN micromamba clean --all --yes
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
WORKDIR /app
|
54 |
|
55 |
-
# Make port 80 available to the world outside this container
|
56 |
-
EXPOSE 7860
|
57 |
# Set the working directory where your app resides
|
58 |
|
59 |
# Command to run the Gradio app automatically
|
60 |
-
CMD ["python", "app/main.py", "-
|
|
|
1 |
+
# This is the dockerfile for the Gradio app on huggingface
|
2 |
+
FROM fuxialexander/getdemo:latest
|
3 |
|
4 |
+
# Switch to mambauser with updated UID
|
|
|
|
|
5 |
USER $MAMBA_USER
|
|
|
6 |
# Set the working directory in the container to /app
|
7 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
COPY --chown=$MAMBA_USER:$MAMBA_USER app/main.py /app/app/main.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
|
|
|
|
13 |
# Set the working directory where your app resides
|
14 |
|
15 |
# Command to run the Gradio app automatically
|
16 |
+
CMD ["python", "/app/app/main.py", "-n", "0.0.0.0", "-p", "7860", "-u", "s3://2023-get-xf2217/get_demo_test_data", "-d", "/app/data"]
|
Dockerfile-dockerhub
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This is the dockerfile for dockerhub fuxialexander/getdemo:latest
|
2 |
+
FROM mambaorg/micromamba
|
3 |
+
|
4 |
+
|
5 |
+
USER root
|
6 |
+
RUN usermod -u 1000 $MAMBA_USER
|
7 |
+
USER $MAMBA_USER
|
8 |
+
|
9 |
+
# Set the working directory in the container to /app
|
10 |
+
WORKDIR /app
|
11 |
+
# Create a new environment using mamba with specified packages
|
12 |
+
RUN micromamba install -n base -c conda-forge -c bioconda -y python=3.10 pip biopython s3fs
|
13 |
+
RUN micromamba install -n base -c conda-forge -c bioconda -y nglview tqdm matplotlib pandas
|
14 |
+
RUN micromamba install -n base -c conda-forge -c bioconda -y openpyxl pyarrow python-box xmlschema seaborn numpy py3Dmol pyranges scipy pyyaml zarr numcodecs
|
15 |
+
RUN micromamba install -n base -c conda-forge -c bioconda -y pybigwig networkx plotly pysam requests seqlogo MOODS urllib3 pyliftover gprofiler-official pyfaidx
|
16 |
+
RUN micromamba install -n base -c conda-forge -y dash-bio
|
17 |
+
|
18 |
+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
19 |
+
# Activate the environment and install additional packages via pip
|
20 |
+
RUN pip3 install gradio
|
21 |
+
USER root
|
22 |
+
RUN mkdir /data
|
23 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
24 |
+
git \
|
25 |
+
ssh \
|
26 |
+
&& apt-get clean \
|
27 |
+
&& rm -rf /var/lib/apt/lists/*
|
28 |
+
|
29 |
+
USER $MAMBA_USER
|
30 |
+
|
31 |
+
# copy modules from local to container
|
32 |
+
COPY --chown=$MAMBA_USER:$MAMBA_USER modules /app/modules
|
33 |
+
|
34 |
+
# copy modules from local to container
|
35 |
+
COPY --chown=$MAMBA_USER:$MAMBA_USER app /app/app
|
36 |
+
|
37 |
+
# copy modules from local to container
|
38 |
+
# COPY --chown=$MAMBA_USER:$MAMBA_USER data /app/data
|
39 |
+
|
40 |
+
# Clone a specific git repository and install it as an editable package
|
41 |
+
|
42 |
+
RUN cd modules/proscope && \
|
43 |
+
pip3 install .
|
44 |
+
|
45 |
+
RUN cd modules/atac_rna_data_processing && \
|
46 |
+
pip3 install .
|
47 |
+
|
48 |
+
# clean all mamba caches and remove unnecessary files
|
49 |
+
RUN micromamba clean --all --yes
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
WORKDIR /app
|
54 |
+
|
55 |
+
# Make port 80 available to the world outside this container
|
56 |
+
EXPOSE 7860
|
57 |
+
# Set the working directory where your app resides
|
58 |
+
|
59 |
+
# Command to run the Gradio app automatically
|
60 |
+
CMD ["python", "app/main.py", "-p", "7860", "-s", "-u", "s3://2023-get-xf2217/get_demo_test_data", "-d", "/data"]
|
modules/proscope
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Subproject commit
|
|
|
1 |
+
Subproject commit f724f8bbc6d9e132c656fc21e854e394755f89db
|