File size: 2,009 Bytes
293b709
 
76709db
293b709
 
 
 
 
 
ab3b0ee
293b709
ee04b02
293b709
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0cf63d
293b709
 
4be3ae1
293b709
 
 
 
 
ee04b02
52b7abc
 
 
293b709
 
 
4be3ae1
969c0b7
293b709
3e2594a
293b709
4be3ae1
293b709
4daf640
293b709
4daf640
293b709
e7ed24e
 
3e2594a
7b9d853
64f545f
251fec2
e7ed24e
 
1eb41f7
 
64f545f
157ae36
ad4cb12
64f545f
157ae36
b25a209
293b709
64f545f
8421fb1
 
18d8d34
0d4fdbf
8098f70
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Use an official Python runtime as a base image
FROM ubuntu:18.04
FROM python:3.11-slim

# Expose the port to run it
ENV LISTEN_PORT=5000
EXPOSE 5000

LABEL Maintainer="arts-of-coding"
USER root

WORKDIR /dashboard

# fix locales
RUN apt-get update \
    && apt-get install -y --no-install-recommends locales \
    && rm -rf /var/lib/apt/lists/* \
    && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
 
ENV LANG en_US.utf8
 
# install blobfuse
RUN apt-get update \
    && apt-get install -y wget apt-utils \
    && wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
    && dpkg -i packages-microsoft-prod.deb \
    && apt-get remove -y wget \
    && apt-get update \
    && apt-get install -y --no-install-recommends fuse blobfuse blobfuse2 libcurl3-gnutls libgnutls30 sudo \
    && rm -rf /var/lib/apt/lists/*

COPY mount-blobfuse.sh /
RUN chmod +x /mount-blobfuse.sh
#COPY --from=compiler /opt/venv/bin/activate /usr/local/bin/activate_venv

#ADD /data/ /app/data/

WORKDIR /dashboard
WORKDIR /
RUN chmod 777 /dashboard
WORKDIR /dashboard

# Preset the volume change this to the actual azure folder
#VOLUME /dash_plotly_QC_scRNA/./data
COPY ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

#COPY . /app

COPY ./mount-blobfuse.sh mount-blobfuse.sh 

#COPY ./dash_plotly_QC_scRNA.py dash_plotly_QC_scRNA.py

#COPY ./main.py main.py

COPY ./app.py app.py

#RUN mkdir /azure

# Only when not using azure
COPY /data/ ./data/

COPY /pages/ ./pages/
#USER testuser
#RUN chown -R testuser /app/azure

#RUN chmod u+rx /mount-blobfuse.sh

# Only when using azure
#ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"] 
#; exec $SHELL"

# How the docker app will run
CMD ["python3","app.py"]
#CMD ["gunicorn", "app:app", "-b", "0.0.0.0:5000"] #, "--host", "0.0.0.0", "--port", "5000"
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]

#-w 3 -k uvicorn.workers.UvicornWorker