github-actions[bot] commited on
Commit ·
5654997
1
Parent(s): 437df61
Auto-deploy from GitHub: a46c4e152825e9e4110867dcb877368415216f21
Browse files- Dockerfile +7 -9
Dockerfile
CHANGED
|
@@ -11,20 +11,18 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
build-essential \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
-
# Copy
|
| 15 |
-
COPY
|
| 16 |
-
|
| 17 |
-
# Install Python dependencies
|
| 18 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
-
|
| 20 |
-
# Copy application files
|
| 21 |
COPY . .
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Create necessary directories
|
| 24 |
RUN mkdir -p uploads temp_dir
|
| 25 |
|
| 26 |
# Expose port
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
-
# Run
|
| 30 |
-
CMD ["python", "
|
|
|
|
| 11 |
build-essential \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
+
# Copy project files
|
| 15 |
+
COPY pyproject.toml .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
+
# Install dependencies and project
|
| 19 |
+
RUN pip install --no-cache-dir .
|
| 20 |
+
|
| 21 |
# Create necessary directories
|
| 22 |
RUN mkdir -p uploads temp_dir
|
| 23 |
|
| 24 |
# Expose port
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
+
# Run the FastAPI app
|
| 28 |
+
CMD ["python", "run.py"]
|