Skip to content

Commit e018927

Browse files
fanuxclaude
andcommitted
fix: Fix ttyd startup command - use official CMD format
- Update entrypoint.sh to use simple 'ttyd -W bash' command - Replace ENTRYPOINT with CMD in Dockerfile as per ttyd official docs - Bump version to v0.0.1-alpha.6 for new build 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c784072 commit e018927

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

.github/workflows/build-runtime-manual.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manual Build Runtime v0.0.1-alpha.5
1+
name: Manual Build Runtime v0.0.1-alpha.6
22

33
on:
44
workflow_dispatch:
@@ -11,7 +11,7 @@ on:
1111
env:
1212
DOCKER_REGISTRY: docker.io
1313
IMAGE_NAME: fullstackagent/fullstack-web-runtime
14-
IMAGE_TAG: v0.0.1-alpha.5
14+
IMAGE_TAG: v0.0.1-alpha.6
1515

1616
jobs:
1717
build-and-push:
@@ -43,7 +43,7 @@ jobs:
4343
push: true
4444
tags: |
4545
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
46-
${{ env.IMAGE_NAME }}:0.0.1-alpha.5
46+
${{ env.IMAGE_NAME }}:0.0.1-alpha.6
4747
${{ env.IMAGE_NAME }}:0.0.1
4848
${{ env.IMAGE_NAME }}:latest
4949
labels: |
@@ -61,7 +61,7 @@ jobs:
6161
echo "" >> $GITHUB_STEP_SUMMARY
6262
echo "**Image Tags:**" >> $GITHUB_STEP_SUMMARY
6363
echo "- \`${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}\`" >> $GITHUB_STEP_SUMMARY
64-
echo "- \`${{ env.IMAGE_NAME }}:0.0.1-alpha.4\`" >> $GITHUB_STEP_SUMMARY
64+
echo "- \`${{ env.IMAGE_NAME }}:0.0.1-alpha.6\`" >> $GITHUB_STEP_SUMMARY
6565
echo "- \`${{ env.IMAGE_NAME }}:latest\`" >> $GITHUB_STEP_SUMMARY
6666
echo "- \`${{ env.IMAGE_NAME }}:0.0.1\`" >> $GITHUB_STEP_SUMMARY
6767
echo "" >> $GITHUB_STEP_SUMMARY

runtime/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,5 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
152152
# Expose common ports for web development
153153
EXPOSE 3000 3001 5000 5173 8080 8000 5432 7681
154154

155-
# Set entrypoint to run ttyd as daemon
156-
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
157-
158-
# Set default command
159-
CMD ["/bin/bash"]
155+
# Use CMD to run entrypoint.sh directly
156+
CMD ["/usr/local/bin/entrypoint.sh"]

runtime/entrypoint.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
11
#!/bin/bash
2-
3-
# Simple entrypoint for ttyd - minimal configuration that works
4-
# Based on user's successful test
5-
6-
# Get port and interface from environment or use defaults
7-
TTYD_PORT=${TTYD_PORT:-7681}
8-
TTYD_INTERFACE=${TTYD_INTERFACE:-0.0.0.0}
9-
10-
echo "Starting ttyd on $TTYD_INTERFACE:$TTYD_PORT"
11-
12-
# Start ttyd with minimal parameters - exactly like user's successful test
13-
exec ttyd --interface $TTYD_INTERFACE --port $TTYD_PORT /bin/bash
2+
ttyd -W bash

0 commit comments

Comments
 (0)