fixed startup
Browse files- Dockerfile +3 -0
- startup.sh +4 -1
Dockerfile
CHANGED
@@ -12,6 +12,9 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
12 |
# Ensure `ollama` is installed
|
13 |
RUN python -m pip show ollama
|
14 |
|
|
|
|
|
|
|
15 |
COPY --chown=user ./startup.sh /app/startup.sh
|
16 |
RUN chmod +x /app/startup.sh
|
17 |
|
|
|
12 |
# Ensure `ollama` is installed
|
13 |
RUN python -m pip show ollama
|
14 |
|
15 |
+
# Copy the application code
|
16 |
+
COPY --chown=user . /app
|
17 |
+
|
18 |
COPY --chown=user ./startup.sh /app/startup.sh
|
19 |
RUN chmod +x /app/startup.sh
|
20 |
|
startup.sh
CHANGED
@@ -4,4 +4,7 @@
|
|
4 |
python -m ollama run gemma2:2b
|
5 |
|
6 |
# Start the application
|
7 |
-
exec uvicorn app:app --host 0.0.0.0 --port 7860
|
|
|
|
|
|
|
|
4 |
python -m ollama run gemma2:2b
|
5 |
|
6 |
# Start the application
|
7 |
+
#exec uvicorn app:app --host 0.0.0.0 --port 7860
|
8 |
+
|
9 |
+
# Start the Streamlit application
|
10 |
+
exec streamlit run app.py --server.port=7860
|