Spaces:
Sleeping
Sleeping
Dockerfileのパスを修正し、アプリケーションコードと依存関係のコピー先を明示的に指定しました。
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -4,14 +4,14 @@ FROM python:3.12-slim
|
|
4 |
WORKDIR /app
|
5 |
|
6 |
# Copy the requirements file and install dependencies
|
7 |
-
COPY requirements.txt .
|
8 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
9 |
|
10 |
# Copy the application code
|
11 |
-
COPY app.py .
|
12 |
|
13 |
# Expose the port the app runs on
|
14 |
EXPOSE 7860
|
15 |
|
16 |
# Command to run the application
|
17 |
-
CMD ["python", "app.py"]
|
|
|
4 |
WORKDIR /app
|
5 |
|
6 |
# Copy the requirements file and install dependencies
|
7 |
+
COPY ./requirements.txt /app/requirements.txt
|
8 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
9 |
|
10 |
# Copy the application code
|
11 |
+
COPY ./app.py /app/app.py
|
12 |
|
13 |
# Expose the port the app runs on
|
14 |
EXPOSE 7860
|
15 |
|
16 |
# Command to run the application
|
17 |
+
CMD ["python", "/app/app.py"]
|