|
|
|
FROM ubuntu:18.04 |
|
FROM python:3.9-slim |
|
|
|
|
|
ENV LISTEN_PORT=5000 |
|
EXPOSE 5000 |
|
|
|
LABEL Maintainer="arts-of-coding" |
|
USER root |
|
|
|
WORKDIR /dashboard |
|
|
|
|
|
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 |
|
|
|
|
|
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 \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
COPY mount-blobfuse.sh / |
|
RUN chmod +x /mount-blobfuse.sh |
|
|
|
|
|
|
|
|
|
WORKDIR /dashboard/app/azure |
|
WORKDIR /dashboard |
|
RUN chmod 777 /dashboard/app/azure |
|
|
|
|
|
|
|
COPY ./requirements.txt requirements.txt |
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt |
|
|
|
|
|
|
|
COPY ./mount-blobfuse.sh mount-blobfuse.sh |
|
|
|
COPY ./dash_plotly_QC_scRNA.py dash_plotly_QC_scRNA.py |
|
|
|
COPY ./main.py main.py |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN chmod +x ./mount-blobfuse.sh |
|
|
|
|
|
ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh"] |
|
|
|
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"] |