Spaces:
Running
Running
Crcs1225
commited on
Commit
·
2fbfdce
1
Parent(s):
8902f8a
change port
Browse files- Dockerfile +2 -3
- config.py +1 -1
Dockerfile
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
# Use a slim Python base
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
-
|
| 5 |
-
WORKDIR /code
|
| 6 |
|
| 7 |
# Install system deps (if you need Mongo client, etc.)
|
| 8 |
RUN apt-get update && apt-get install -y build-essential
|
|
@@ -12,7 +11,7 @@ COPY requirements.txt .
|
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
# Copy app code
|
| 15 |
-
COPY
|
| 16 |
|
| 17 |
# Expose port
|
| 18 |
EXPOSE 7860
|
|
|
|
| 1 |
# Use a slim Python base
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
+
WORKDIR /app
|
|
|
|
| 5 |
|
| 6 |
# Install system deps (if you need Mongo client, etc.)
|
| 7 |
RUN apt-get update && apt-get install -y build-essential
|
|
|
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
# Copy app code
|
| 14 |
+
COPY . .
|
| 15 |
|
| 16 |
# Expose port
|
| 17 |
EXPOSE 7860
|
config.py
CHANGED
|
@@ -8,7 +8,7 @@ class Settings(BaseSettings):
|
|
| 8 |
products_collection: str = "marketplace"
|
| 9 |
conversations_collection: str = "conversations"
|
| 10 |
embeddings_collection: str = "embeddings"
|
| 11 |
-
port: int =
|
| 12 |
|
| 13 |
class Config:
|
| 14 |
env_file = ".env"
|
|
|
|
| 8 |
products_collection: str = "marketplace"
|
| 9 |
conversations_collection: str = "conversations"
|
| 10 |
embeddings_collection: str = "embeddings"
|
| 11 |
+
port: int = 7860
|
| 12 |
|
| 13 |
class Config:
|
| 14 |
env_file = ".env"
|