Skip to content

Commit bd9f05a

Browse files
authored
Merge pull request #1 from echohello-dev/feature/test-change
fix: Dockerfile setup
2 parents 19e9eb7 + bd8b1b1 commit bd9f05a

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
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+
ENTRYPOINT ["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."

README.md

Lines changed: 25 additions & 7 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'
@@ -121,13 +137,15 @@ You can also run the application using Docker:
121137
- ./.transcribe.yaml:/app/.transcribe.yaml
122138
```
123139

124-
Run the following command to start the application using Docker Compose:
140+
Run the following command to start the application using Docker Compose:
125141

126-
```bash
127-
docker compose run --rm app
128-
```
142+
```bash
143+
docker compose run --rm transcribe-me
144+
```
145+
146+
This command mounts the `input`, `output`, `archive`, and `.transcribe.yaml` configuration file into the Docker container. See [`compose.example.yaml`](./compose.example.yaml) for an example configuration.
129147

130-
This command mounts the `input`, `output`, `archive`, and `.transcribe.yaml` configuration file into the Docker container. See [`compose.example.yaml`](./compose.example.yaml) for an example configuration.
148+
Make sure to replace `OPENAI_API_KEY` and `ANTHROPIC_API_KEY` with your actual API keys. Also make sure to create the `.transcribe.yaml` configuration file in the same directory as the `docker-compose.yml` file.
131149

132150
## :rocket: How it Works
133151

transcribe_me/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
parts = __version__.split(".")
66
if len(parts) != 3 or not all(part.isdigit() for part in parts):
77
__version__ = "0.0.0"
8-

0 commit comments

Comments
 (0)