Skip to content

Remove ineffective PORT env from Dockerfile#193

Merged
welshDog merged 1 commit intomainfrom
railway/code-change-jG15b9
May 1, 2026
Merged

Remove ineffective PORT env from Dockerfile#193
welshDog merged 1 commit intomainfrom
railway/code-change-jG15b9

Conversation

@railway-app
Copy link
Copy Markdown
Contributor

@railway-app railway-app Bot commented May 1, 2026

Problem

The runtime stage of backend/Dockerfile contained ENV PORT=8000 with comments claiming it prevents Railway from injecting PORT=8080. This is incorrect — Railway's runtime environment variable injection always overrides Dockerfile ENV directives, so the line had no effect and was actively misleading.

Solution

Removed ENV PORT=8000 and its two associated comment lines from the runtime stage. The actual fix — setting PORT=8000 as a Railway service variable — is already applied via config, so this change is purely a dead-code cleanup that eliminates future confusion.

Changes

  • Modified backend/Dockerfile

Generated by Railway

@welshDog welshDog merged commit 02e4d3b into main May 1, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant