matsuap commited on
Commit
aa467c3
·
1 Parent(s): 08dd397

Dockerfileのパスを修正し、アプリケーションコードと依存関係のコピー先を明示的に指定しました。

Browse files
Files changed (1) hide show
  1. 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"]