Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
# Builder stage
|
| 2 |
FROM ubuntu:latest
|
|
|
|
|
|
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
RUN apt update && apt install curl -y
|
| 5 |
|
| 6 |
RUN curl https://ollama.ai/install.sh | sh
|
|
@@ -18,7 +25,7 @@ EXPOSE 7860
|
|
| 18 |
|
| 19 |
COPY requirements.txt ./
|
| 20 |
|
| 21 |
-
RUN
|
| 22 |
|
| 23 |
|
| 24 |
# Make port 80 available to the world outside this container
|
|
|
|
| 1 |
# Builder stage
|
| 2 |
FROM ubuntu:latest
|
| 3 |
+
# Use an official Python runtime as a parent image
|
| 4 |
+
FROM python:3.10-slim
|
| 5 |
|
| 6 |
+
# Set the working directory in the container
|
| 7 |
+
WORKDIR /usr/src/app
|
| 8 |
+
|
| 9 |
+
# Update the package list and install pip
|
| 10 |
+
RUN apt-get update && apt-get install -y python3-pip
|
| 11 |
RUN apt update && apt install curl -y
|
| 12 |
|
| 13 |
RUN curl https://ollama.ai/install.sh | sh
|
|
|
|
| 25 |
|
| 26 |
COPY requirements.txt ./
|
| 27 |
|
| 28 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 29 |
|
| 30 |
|
| 31 |
# Make port 80 available to the world outside this container
|