Spaces:
Sleeping
Sleeping
Deploy FastAPI server with CodeLlama 7B
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -12,12 +12,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Copy requirements and install Python dependencies
|
| 15 |
-
COPY
|
| 16 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 17 |
pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
# Copy application code
|
| 20 |
-
COPY
|
| 21 |
|
| 22 |
# Expose port (HF Spaces uses 7860)
|
| 23 |
EXPOSE 7860
|
|
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Copy requirements and install Python dependencies
|
| 15 |
+
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 17 |
pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
# Copy application code
|
| 20 |
+
COPY app.py .
|
| 21 |
|
| 22 |
# Expose port (HF Spaces uses 7860)
|
| 23 |
EXPOSE 7860
|