Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -6,14 +6,16 @@ WORKDIR /app
|
|
6 |
COPY requirements.txt .
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
-
# Copy application
|
10 |
-
COPY
|
|
|
|
|
|
|
11 |
|
12 |
# Set environment variables
|
13 |
ENV PYTHONPATH=/app
|
14 |
|
15 |
# Create entrypoint script
|
16 |
-
COPY entrypoint.sh /app/
|
17 |
RUN chmod +x /app/entrypoint.sh
|
18 |
|
19 |
# Command to run the application
|
|
|
6 |
COPY requirements.txt .
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
+
# Copy all application files (including setup.py)
|
10 |
+
COPY . /app
|
11 |
+
|
12 |
+
# Install the package in development mode
|
13 |
+
RUN pip install -e .
|
14 |
|
15 |
# Set environment variables
|
16 |
ENV PYTHONPATH=/app
|
17 |
|
18 |
# Create entrypoint script
|
|
|
19 |
RUN chmod +x /app/entrypoint.sh
|
20 |
|
21 |
# Command to run the application
|