Skip to content

Commit c13fa1c

Browse files
committed
fix: Refactor Dockerfile setup for improved execution
- Refactored Dockerfile CMD to improve the way the main Python file is run - Added a new copy command in Dockerfile for requirements.txt file
1 parent e804bcf commit c13fa1c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ RUN apt-get update && apt-get install -y ffmpeg
44

55
WORKDIR /app
66

7-
COPY . .
8-
7+
COPY requirements.txt ./
98
RUN pip install --no-cache-dir -r requirements.txt
109

11-
CMD ["python", "/app/transcribe_me/main.py"]
10+
COPY . .
11+
12+
CMD ["python", "-m", "transcribe_me.main"]
1213

1314
LABEL org.opencontainers.image.source=https://github.com/echohello-dev/transcribe-me
1415
LABEL org.opencontainers.image.description="The transcriber that uses Anthropic and OpenAI."

0 commit comments

Comments
 (0)