Skip to content

Commit b43288a

Browse files
Fix: Isolate Docker RUN layers and fix git detached HEAD in workflow
1 parent 653b55f commit b43288a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15+
- name: Fix detached HEAD
16+
run: |
17+
git fetch --all
18+
git checkout ${{ github.ref_name }}
19+
1520
- name: Checkout repository
1621
uses: actions/checkout@v3
1722

agents/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ RUN apt-get update && apt-get install -y \
2020
libglib2.0-0 \
2121
libsndfile1 \
2222
espeak && \
23-
pip install --no-cache-dir -r requirements.txt && \
24-
python3 -c "import pygame, pyaudio" && \
2523
apt-get clean && rm -rf /var/lib/apt/lists/*
2624

25+
RUN pip install --no-cache-dir -r requirements.txt
26+
27+
# Debug with separate test step
28+
RUN python3 -c "import pygame; import pyaudio"
29+
2730
# Now, copy the application code into a subdirectory
2831
COPY core_intelligence ./core_intelligence
2932
COPY voice_synthesis ./voice_synthesis

0 commit comments

Comments
 (0)