diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a798e3..dda4472 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.7.1] - 2026-03-02 + +### Fixed + +- 🐳 **Docker terminal shell** — fixed `can't access tty; job control turned off` error by setting the default shell to `/bin/bash` for the container user. Previously the user was created with `/bin/sh` (dash), which does not support interactive job control in a PTY. + ## [0.7.0] - 2026-03-02 ### Added diff --git a/Dockerfile b/Dockerfile index b1ec830..fde23e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,8 +46,9 @@ RUN pip install --no-cache-dir \ COPY . . RUN pip install --no-cache-dir . -RUN useradd -m user && echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +RUN useradd -m -s /bin/bash user && echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers USER user +ENV SHELL=/bin/bash WORKDIR /home/user EXPOSE 8000 diff --git a/open_terminal/main.py b/open_terminal/main.py index b99ac6d..905aa11 100644 --- a/open_terminal/main.py +++ b/open_terminal/main.py @@ -69,7 +69,7 @@ async def verify_api_key( app = FastAPI( title="Open Terminal", description="A remote terminal API.", - version="0.5.0", + version="0.7.1", ) app.add_middleware( CORSMiddleware, diff --git a/pyproject.toml b/pyproject.toml index d59ebda..eb7d4e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "open-terminal" -version = "0.7.0" +version = "0.7.1" description = "A remote terminal API." readme = "README.md" authors = [