Arts-of-coding
commited on
Commit
•
7c9e0bc
1
Parent(s):
b0f2a78
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -52,9 +52,13 @@ COPY ./main.py main.py
|
|
52 |
|
53 |
RUN mkdir /azure
|
54 |
|
|
|
|
|
|
|
55 |
RUN chmod +x ./mount-blobfuse.sh
|
56 |
|
57 |
-
#
|
58 |
-
ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"]
|
59 |
|
|
|
60 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
|
|
|
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"]
|