Update Dockerfile
Browse files- Dockerfile +3 -11
Dockerfile
CHANGED
|
@@ -34,17 +34,9 @@ COPY --chown=user:user . .
|
|
| 34 |
# We'll use a trick with a shell script for this.
|
| 35 |
|
| 36 |
# Create a startup script
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
echo 'sleep 5' >> start.sh && \
|
| 41 |
-
echo 'ollama pull nomic-embed-text' >> start.sh && \
|
| 42 |
-
echo 'ollama pull llama2' >> start.sh && \
|
| 43 |
-
echo 'ollama pull mistral' >> start.sh && \
|
| 44 |
-
echo 'ollama pull tinyllama' >> start.sh && \
|
| 45 |
-
echo 'sleep 5' >> start.sh && \
|
| 46 |
-
echo 'streamlit run src/streamlit_app.py --server.port=8501 --server.address=0.0.0.0' >> start.sh && \
|
| 47 |
-
chmod +x start.sh
|
| 48 |
|
| 49 |
# Expose Streamlit and Ollama ports
|
| 50 |
EXPOSE 8501
|
|
|
|
| 34 |
# We'll use a trick with a shell script for this.
|
| 35 |
|
| 36 |
# Create a startup script
|
| 37 |
+
# Copy entrypoint script
|
| 38 |
+
COPY --chown=user:user start.sh .
|
| 39 |
+
RUN chmod +x start.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
# Expose Streamlit and Ollama ports
|
| 42 |
EXPOSE 8501
|