Hugoifier
fix(docker): broken CMD, wrong subcommand, missing env vars, deprecated version key Closes #1
Commit
5641b02026e6083f6c7a14f7c8a17873be00df74fd6dfcfafcf2885255aea22c
Parent
fc5ed4bdf8f3f27…
2 files changed
+1
-1
+6
-4
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -18,6 +18,6 @@ | ||
| 18 | 18 | |
| 19 | 19 | # Set environment variable for OpenAI API key (you may also pass this at runtime) |
| 20 | 20 | # ENV OPENAI_API_KEY=your_openai_api_key |
| 21 | 21 | |
| 22 | 22 | # Define the command to run your application |
| 23 | -CMD ["python3", "src/main.py"] | |
| 23 | +CMD ["python3", "src/cli.py"] | |
| 24 | 24 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -18,6 +18,6 @@ | |
| 18 | |
| 19 | # Set environment variable for OpenAI API key (you may also pass this at runtime) |
| 20 | # ENV OPENAI_API_KEY=your_openai_api_key |
| 21 | |
| 22 | # Define the command to run your application |
| 23 | CMD ["python3", "src/main.py"] |
| 24 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -18,6 +18,6 @@ | |
| 18 | |
| 19 | # Set environment variable for OpenAI API key (you may also pass this at runtime) |
| 20 | # ENV OPENAI_API_KEY=your_openai_api_key |
| 21 | |
| 22 | # Define the command to run your application |
| 23 | CMD ["python3", "src/cli.py"] |
| 24 |
+6
-4
| --- docker-compose.yml | ||
| +++ docker-compose.yml | ||
| @@ -1,10 +1,12 @@ | ||
| 1 | -version: '3.8' | |
| 2 | - | |
| 3 | 1 | services: |
| 4 | 2 | hugoifier: |
| 5 | 3 | build: . |
| 6 | 4 | environment: |
| 5 | + - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} | |
| 7 | 6 | - OPENAI_API_KEY=${OPENAI_API_KEY} |
| 7 | + - GOOGLE_API_KEY=${GOOGLE_API_KEY} | |
| 8 | + - HUGOIFIER_BACKEND=${HUGOIFIER_BACKEND:-anthropic} | |
| 8 | 9 | volumes: |
| 9 | - - ./:/app | |
| 10 | - command: python cli.py convert --input theme.html --output hugo-theme | |
| 10 | + - ./themes:/app/themes | |
| 11 | + - ./output:/app/output | |
| 12 | + command: python src/cli.py complete themes/ | |
| 11 | 13 |
| --- docker-compose.yml | |
| +++ docker-compose.yml | |
| @@ -1,10 +1,12 @@ | |
| 1 | version: '3.8' |
| 2 | |
| 3 | services: |
| 4 | hugoifier: |
| 5 | build: . |
| 6 | environment: |
| 7 | - OPENAI_API_KEY=${OPENAI_API_KEY} |
| 8 | volumes: |
| 9 | - ./:/app |
| 10 | command: python cli.py convert --input theme.html --output hugo-theme |
| 11 |
| --- docker-compose.yml | |
| +++ docker-compose.yml | |
| @@ -1,10 +1,12 @@ | |
| 1 | services: |
| 2 | hugoifier: |
| 3 | build: . |
| 4 | environment: |
| 5 | - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} |
| 6 | - OPENAI_API_KEY=${OPENAI_API_KEY} |
| 7 | - GOOGLE_API_KEY=${GOOGLE_API_KEY} |
| 8 | - HUGOIFIER_BACKEND=${HUGOIFIER_BACKEND:-anthropic} |
| 9 | volumes: |
| 10 | - ./themes:/app/themes |
| 11 | - ./output:/app/output |
| 12 | command: python src/cli.py complete themes/ |
| 13 |