Update Dockerfile
Browse files- Dockerfile +18 -13
Dockerfile
CHANGED
@@ -1,18 +1,23 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
#
|
7 |
-
|
8 |
-
chmod -R 777 /ollama
|
9 |
|
10 |
-
#
|
11 |
-
#
|
12 |
-
# RUN
|
13 |
-
# RUN chown -R ollamauser:ollamauser /ollama
|
14 |
-
# USER ollamauser
|
15 |
|
16 |
-
|
|
|
|
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9-slim
|
3 |
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /usr/src/app
|
6 |
|
7 |
+
# Copy the current directory contents into the container at /usr/src/app
|
8 |
+
COPY . .
|
|
|
9 |
|
10 |
+
# Install any needed packages specified in requirements.txt
|
11 |
+
# Uncomment the next line if you have dependencies in requirements.txt
|
12 |
+
# RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
13 |
|
14 |
+
# Make port 80 available to the world outside this container
|
15 |
+
# Uncomment the next line if your app uses a web server
|
16 |
+
EXPOSE 80
|
17 |
|
18 |
+
# Define environment variable
|
19 |
+
# Uncomment and edit the next line if you need an environment variable
|
20 |
+
# ENV NAME Value
|
21 |
+
|
22 |
+
# Run app.py when the container launches
|
23 |
+
CMD ["python", "main.py"]
|