Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -4,10 +4,6 @@ FROM neo4j:2026.04.0
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Prevent Python from writing pyc files to disc (optional but good practice)
|
| 8 |
-
ENV PYTHONDONTWRITEBYTECODE 1
|
| 9 |
-
# Ensure Python output is sent straight to terminal (useful for logs)
|
| 10 |
-
ENV PYTHONUNBUFFERED 1
|
| 11 |
|
| 12 |
# Upgrade pip
|
| 13 |
RUN python -m pip install --upgrade pip
|
|
@@ -23,7 +19,7 @@ RUN pip install --no-cache-dir --default-timeout=100 -r requirements.txt
|
|
| 23 |
|
| 24 |
# Copy the application code into the container
|
| 25 |
# This assumes your FastAPI application is in a file named 'main.py'.
|
| 26 |
-
COPY
|
| 27 |
# If you had other local modules or directories part of your project (e.g., a 'core' or 'utils' folder),
|
| 28 |
# you would add more COPY lines here, like:
|
| 29 |
# COPY ./your_module_directory ./your_module_directory
|
|
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Upgrade pip
|
| 9 |
RUN python -m pip install --upgrade pip
|
|
|
|
| 19 |
|
| 20 |
# Copy the application code into the container
|
| 21 |
# This assumes your FastAPI application is in a file named 'main.py'.
|
| 22 |
+
COPY . .
|
| 23 |
# If you had other local modules or directories part of your project (e.g., a 'core' or 'utils' folder),
|
| 24 |
# you would add more COPY lines here, like:
|
| 25 |
# COPY ./your_module_directory ./your_module_directory
|