Spaces:
Paused
Paused
bok commited on
Commit ·
922af7d
1
Parent(s): 8dd2cbc
update Dockerfile for HF spaces
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -7,13 +7,17 @@ RUN apt-get update && apt-get install -y \
|
|
| 7 |
curl \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
-
# Copy
|
| 11 |
COPY requirements.txt .
|
| 12 |
-
RUN
|
|
|
|
| 13 |
|
| 14 |
# Copy application code
|
| 15 |
COPY . .
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
# Expose port (HF Spaces uses 7860)
|
| 18 |
EXPOSE 7860
|
| 19 |
|
|
|
|
| 7 |
curl \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Copy requirements and filter out rotator_library
|
| 11 |
COPY requirements.txt .
|
| 12 |
+
RUN grep -v -- '-e src/rotator_library' requirements.txt > temp_requirements.txt
|
| 13 |
+
RUN pip install --no-cache-dir -r temp_requirements.txt
|
| 14 |
|
| 15 |
# Copy application code
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
+
# Install rotator_library in editable mode
|
| 19 |
+
RUN pip install --no-cache-dir -e src/rotator_library
|
| 20 |
+
|
| 21 |
# Expose port (HF Spaces uses 7860)
|
| 22 |
EXPOSE 7860
|
| 23 |
|