yonikremer
commited on
Commit
•
9be6535
1
Parent(s):
a4a9857
improved efficiency of the docker file
Browse files- .dockerignore +4 -0
- Dockerfile +6 -1
.dockerignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
tests.py
|
2 |
+
.gitattributes
|
3 |
+
.gitignore
|
4 |
+
start_server.py
|
Dockerfile
CHANGED
@@ -15,8 +15,13 @@ ENV TRANSFORMERS_CACHE="/app/my_streamlit_app/.cache/transformers"
|
|
15 |
|
16 |
ENV TOKENIZERS_PARALLELISM=false
|
17 |
|
18 |
-
COPY . /app/my_streamlit_app/
|
|
|
19 |
|
20 |
RUN python /app/my_streamlit_app/download_repo.py
|
21 |
|
|
|
|
|
|
|
|
|
22 |
CMD ["streamlit", "run", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false", "--theme.base", "dark", "--server.maxUploadSize", "1000", "/app/my_streamlit_app/app.py"]
|
|
|
15 |
|
16 |
ENV TOKENIZERS_PARALLELISM=false
|
17 |
|
18 |
+
COPY ./download_repo.py /app/my_streamlit_app/download_repo.py
|
19 |
+
COPY ./available_models.py /app/my_streamlit_app/available_models.py
|
20 |
|
21 |
RUN python /app/my_streamlit_app/download_repo.py
|
22 |
|
23 |
+
COPY ./app.py /app/my_streamlit_app/app.py
|
24 |
+
COPY ./hanlde_form_submit.py /app/my_streamlit_app/hanlde_form_submit.py
|
25 |
+
COPY ./user_instructions_hebrew.md /app/my_streamlit_app/user_instructions_hebrew.md
|
26 |
+
|
27 |
CMD ["streamlit", "run", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false", "--theme.base", "dark", "--server.maxUploadSize", "1000", "/app/my_streamlit_app/app.py"]
|