Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -35,14 +35,14 @@ RUN chmod +x /mount-blobfuse.sh
|
|
| 35 |
|
| 36 |
#ADD /data/ /app/data/
|
| 37 |
|
| 38 |
-
WORKDIR /app
|
| 39 |
|
| 40 |
# Preset the volume change this to the actual azure folder
|
| 41 |
#VOLUME /dash_plotly_QC_scRNA/./data
|
| 42 |
COPY ./requirements.txt requirements.txt
|
| 43 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 44 |
|
| 45 |
-
COPY . /app
|
| 46 |
|
| 47 |
COPY ./mount-blobfuse.sh mount-blobfuse.sh
|
| 48 |
|
|
@@ -50,15 +50,15 @@ COPY ./dash_plotly_QC_scRNA.py dash_plotly_QC_scRNA.py
|
|
| 50 |
|
| 51 |
COPY ./main.py main.py
|
| 52 |
|
| 53 |
-
RUN mkdir /azure
|
| 54 |
|
| 55 |
# Only when not using azure
|
| 56 |
-
COPY /data/ ./azure/data/
|
| 57 |
|
| 58 |
RUN chmod +x ./mount-blobfuse.sh
|
| 59 |
|
| 60 |
# Only when using azure
|
| 61 |
-
|
| 62 |
|
| 63 |
# How the docker app will run
|
| 64 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
|
|
|
|
| 35 |
|
| 36 |
#ADD /data/ /app/data/
|
| 37 |
|
| 38 |
+
#WORKDIR /app
|
| 39 |
|
| 40 |
# Preset the volume change this to the actual azure folder
|
| 41 |
#VOLUME /dash_plotly_QC_scRNA/./data
|
| 42 |
COPY ./requirements.txt requirements.txt
|
| 43 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 44 |
|
| 45 |
+
#COPY . /app
|
| 46 |
|
| 47 |
COPY ./mount-blobfuse.sh mount-blobfuse.sh
|
| 48 |
|
|
|
|
| 50 |
|
| 51 |
COPY ./main.py main.py
|
| 52 |
|
| 53 |
+
#RUN mkdir /azure
|
| 54 |
|
| 55 |
# Only when not using azure
|
| 56 |
+
#COPY /data/ ./azure/data/
|
| 57 |
|
| 58 |
RUN chmod +x ./mount-blobfuse.sh
|
| 59 |
|
| 60 |
# Only when using azure
|
| 61 |
+
ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"]
|
| 62 |
|
| 63 |
# How the docker app will run
|
| 64 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
|