fix: use bash as default shell in Docker container

Set /bin/bash as the login shell for the container user and export
SHELL=/bin/bash so the terminal PTY handler picks it up. Previously
the user was created with /bin/sh (dash), which does not support
interactive job control, producing 'can't access tty; job control
turned off'.

Bump version to 0.7.1.
This commit is contained in:
Timothy Jaeryang Baek committed 2026-03-02 15:20:07 -06:00
1 parent ee74581eeb
commit 8ea7499911
4 files changed
+10 -3

No files matched your search

+6
View File
@@ -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
+2 -1
View File
@@ -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
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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 = [