Skip to content

Commit d19c900

Browse files
committed
chore: Update Docker configuration for improved execution
- Change `CMD` to `ENTRYPOINT` in Dockerfile for improved container execution - Add concise instructions for installation and configuration in README - Update Docker command with necessary environment variables and volume mounts
1 parent c13fa1c commit d19c900

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN pip install --no-cache-dir -r requirements.txt
99

1010
COPY . .
1111

12-
CMD ["python", "-m", "transcribe_me.main"]
12+
ENTRYPOINT ["python", "-m", "transcribe_me.main"]
1313

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

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,27 @@ This has been tested with macOS, your mileage may vary on other operating system
9191

9292
You can also run the application using Docker:
9393

94-
1. Run the following command to run the application in Docker:
94+
1. Install Docker on your machine by following the instructions on the [Docker website](https://docs.docker.com/get-docker/).
95+
96+
2. Create a `.transcribe.yaml` configuration file:
97+
98+
```bash
99+
touch .transcribe.yaml
100+
docker run \
101+
--rm \
102+
-v $(pwd)/.transcribe.yaml:/app/.transcribe.yaml \
103+
ghcr.io/echohello-dev/transcribe-me:latest install
104+
```
105+
106+
107+
3. Run the following command to run the application in Docker:
95108

96109
```bash
97110
docker run \
98111
--rm \
112+
-e OPENAI_API_KEY \
113+
-e ANTHROPIC_API_KEY \
114+
-v $(pwd)/archive:/app/archive \
99115
-v $(pwd)/input:/app/input \
100116
-v $(pwd)/output:/app/output \
101117
-v $(pwd)/.transcribe.yaml:/app/.transcribe.yaml \
@@ -104,7 +120,7 @@ You can also run the application using Docker:
104120

105121
This command mounts the `input` and `output` directories and the `.transcribe.yaml` configuration file into the Docker container.
106122

107-
2. (Optional) We can also run the application using the provided `docker-compose.yml` file:
123+
4. (Optional) We can also run the application using the provided `docker-compose.yml` file:
108124

109125
```yaml
110126
version: '3'

0 commit comments

Comments
 (0)