Skip to content

Commit 25f25a4

Browse files
committed
bug: shell issue
1 parent 6e146cf commit 25f25a4

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ You can find the docker image in `tools/image/Dockerfile`
223223
### Build and run - app starts automatically
224224

225225
```bash
226-
docker build -t ai-agent:latest -f tools/images/Dockerfile .
226+
docker build -t ai-agent:latest -f tools/image/Dockerfile .
227227
docker run -d --rm -p 7860:7860 ai-agent:latest
228228
```
229229

tools/image/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM ghcr.io/astral-sh/uv:python3.12-bookworm
22

3+
# Set default shell to bash for all subsequent RUN commands
4+
SHELL ["/bin/bash", "-c"]
5+
36
# Crear usuario no-root con UID/GID que suele usar VS Code (1000:1000)
47
RUN useradd -ms /bin/bash -u 1000 non-root-user \
58
&& apt-get update && apt-get install -y sudo \
@@ -18,11 +21,8 @@ RUN uv venv && \
1821
# Copy the rest of the project
1922
COPY --chown=non-root-user:non-root-user . ./
2023

21-
# Install the package in editable mode
22-
RUN source .venv/bin/activate && \
23-
uv pip install -e .
24+
# Install the package in editable mode (now using bash by default)
25+
RUN source .venv/bin/activate && uv pip install -e .
2426

25-
# Set default shell to use the virtual environment
26-
SHELL ["/bin/bash", "-c"]
2727
EXPOSE 7860
28-
ENTRYPOINT ["/bin/bash", "-c", "source .venv/bin/activate && python -m ai_agent.app"]
28+
ENTRYPOINT ["source .venv/bin/activate && python -m ai_agent.app"]

0 commit comments

Comments
 (0)