Update Dockerfile
Browse files- Dockerfile +19 -19
Dockerfile
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
-
# Use official Python runtime as a parent image
|
2 |
-
FROM python:3.10-slim
|
3 |
-
|
4 |
-
# Set working directory
|
5 |
-
WORKDIR /app
|
6 |
-
|
7 |
-
# Copy requirements.txt and install dependencies
|
8 |
-
COPY requirements.txt .
|
9 |
-
|
10 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
-
|
12 |
-
# Copy the application code
|
13 |
-
COPY openai_wrapper.py .
|
14 |
-
|
15 |
-
# Expose port 8000 for the FastAPI app
|
16 |
-
EXPOSE
|
17 |
-
|
18 |
-
# Command to run the app with uvicorn
|
19 |
-
CMD ["uvicorn", "openai_wrapper:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
1 |
+
# Use official Python runtime as a parent image
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Set working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy requirements.txt and install dependencies
|
8 |
+
COPY requirements.txt .
|
9 |
+
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Copy the application code
|
13 |
+
COPY openai_wrapper.py .
|
14 |
+
|
15 |
+
# Expose port 8000 for the FastAPI app
|
16 |
+
EXPOSE 7860
|
17 |
+
|
18 |
+
# Command to run the app with uvicorn
|
19 |
+
CMD ["uvicorn", "openai_wrapper:app", "--host", "0.0.0.0", "--port", "8000"]
|