Skip to content

Commit

Permalink
Merge pull request #123 from ajcwebdev/docker
Browse files Browse the repository at this point in the history
Update Docker Entrypoint
  • Loading branch information
ajcwebdev authored Feb 1, 2025
2 parents 0b50a0f + 35497f3 commit deceb34
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 283 deletions.
2 changes: 1 addition & 1 deletion .github/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ "$1" = "serve" ]; then
echo "Starting Autoshow server..."
# Remove first arg ("serve") so we don't pass that to the server script.
shift
tsx --no-warnings --experimental-sqlite src/server/index.ts "$@" || log_error "Server failed to start"
tsx --no-warnings --experimental-sqlite src/fastify.ts "$@" || log_error "Server failed to start"
fi

# Otherwise, run the CLI by default.
Expand Down
16 changes: 1 addition & 15 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ You can run any of the `as` CLI commands by passing arguments to the container v
```bash
npm run docker-cli -- \
--video "https://www.youtube.com/watch?v=MORMZXEaONk" \
--whisper base \
--ollama
--whisper base
```

### Run the Server with Docker
Expand Down Expand Up @@ -80,19 +79,6 @@ curl -X POST http://localhost:3000/process \
}'
```

```bash
curl -X POST http://localhost:3000/process \
-H "Content-Type: application/json" \
-d '{
"type": "video",
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
"llm": "ollama",
"llmModel": "LLAMA_3_2_3B",
"transcriptServices": "whisper",
"whisperModel": "base"
}'
```

### Railway

Work in progress, still having issues getting the server to start on 3000.
Expand Down
267 changes: 0 additions & 267 deletions docs/scripts.md

This file was deleted.

0 comments on commit deceb34

Please sign in to comment.