Arts-of-coding commited on
Commit
37ee102
1 Parent(s): 1bfff3c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -21
Dockerfile CHANGED
@@ -7,7 +7,6 @@ ENV LISTEN_PORT=5000
7
  EXPOSE 5000
8
 
9
  LABEL Maintainer="arts-of-coding"
10
- RUN useradd -m -u 1000 user
11
 
12
  WORKDIR /
13
 
@@ -29,7 +28,7 @@ RUN apt-get update \
29
  && apt-get install -y --no-install-recommends fuse blobfuse libcurl3-gnutls libgnutls30 \
30
  && rm -rf /var/lib/apt/lists/*
31
 
32
- COPY --chown=user mount-blobfuse.sh /
33
  RUN chmod +x /mount-blobfuse.sh
34
  #COPY --from=compiler /opt/venv/bin/activate /usr/local/bin/activate_venv
35
 
@@ -39,34 +38,22 @@ WORKDIR /app
39
 
40
  # Preset the volume change this to the actual azure folder
41
  #VOLUME /dash_plotly_QC_scRNA/./data
42
- COPY --chown=user ./requirements.txt requirements.txt
43
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
44
 
45
- COPY --chown=user . /app
46
 
47
- COPY --chown=user ./mount-blobfuse.sh mount-blobfuse.sh
48
 
49
- COPY --chown=user ./dash_plotly_QC_scRNA.py dash_plotly_QC_scRNA.py
50
 
51
- COPY --chown=user ./main.py main.py
52
 
53
- USER user
54
-
55
- ENV HOME=/home/user \
56
- PATH=/home/user/.local/bin:$PATH
57
-
58
- USER root
59
  RUN mkdir /azure
60
 
61
- USER root
62
  RUN chmod +x ./mount-blobfuse.sh
63
 
64
- USER root
65
- CMD ./mount-blobfuse.sh
66
-
67
- #USER user
68
-
69
  # How the docker app will run
70
- #ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"]
71
 
72
- #CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
 
7
  EXPOSE 5000
8
 
9
  LABEL Maintainer="arts-of-coding"
 
10
 
11
  WORKDIR /
12
 
 
28
  && apt-get install -y --no-install-recommends fuse blobfuse libcurl3-gnutls libgnutls30 \
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
+ COPY mount-blobfuse.sh /
32
  RUN chmod +x /mount-blobfuse.sh
33
  #COPY --from=compiler /opt/venv/bin/activate /usr/local/bin/activate_venv
34
 
 
38
 
39
  # Preset the volume change this to the actual azure folder
40
  #VOLUME /dash_plotly_QC_scRNA/./data
41
+ COPY ./requirements.txt requirements.txt
42
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
43
 
44
+ COPY . /app
45
 
46
+ COPY ./mount-blobfuse.sh mount-blobfuse.sh
47
 
48
+ COPY ./dash_plotly_QC_scRNA.py dash_plotly_QC_scRNA.py
49
 
50
+ COPY ./main.py main.py
51
 
 
 
 
 
 
 
52
  RUN mkdir /azure
53
 
 
54
  RUN chmod +x ./mount-blobfuse.sh
55
 
 
 
 
 
 
56
  # How the docker app will run
57
+ ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"]
58
 
59
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]