fix: fix Dockerfile missing EXPOSE and broken shebang#83
Merged
cristipufu merged 1 commit intomainfrom Feb 22, 2026
Merged
Conversation
Container was exiting immediately with code 2 on deployment. Added EXPOSE 80 to Dockerfile and fixed malformed shebang (space between # and !). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes two issues in the container configuration: a malformed shebang in the startup script and a missing port exposure declaration in the Dockerfile. The shebang had an incorrect space between # and !, preventing proper script execution, and the Dockerfile lacked the EXPOSE directive needed for container platforms to identify listening ports.
Changes:
- Fixed shebang in
start.shby removing space between#and! - Added
EXPOSE 80directive to Dockerfile to match the configured server port
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| start.sh | Corrected malformed shebang from # !/bin/sh to #!/bin/sh |
| Dockerfile | Added EXPOSE 80 directive to declare container's listening port |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EXPOSE 80to Dockerfile — platform was warning "Container image does not expose any ports"start.sh(# !/bin/sh→#!/bin/sh)start.shfrom CRLF to LF line endings —\rwas causing/bin/shto fail with exit code 2 instantly in the Linux container*.sh text eol=lfto.gitattributesto prevent recurrenceTest plan
docker build -t uipath-dev-py . && docker run --rm uipath-dev-py🤖 Generated with Claude Code