Skip to content

Conversation

@funkybunch
Copy link
Contributor

Not seeing a CONTRIBUTING.md file so I'll do my best to be specific.

Main change: Changes the JRE image to a Bionic-specific image. This change is in Dockerfile line 42.

This PR also allows the port to be configured through docker-compose.yml. This means images built using docker-compose will use the configured port, but images built using docker build will still default to port 8080. The environment variable definitions required to do this were added to docker-compose.yml. Nothing breaks if the environment variables are omitted - the API just runs on port 8080 like it does currently.

A small change is made to main.go to detect the PORT environment variable and use it to configure Swagger if it exists, but fallback to 8080 if it does not (like if it is built with the Dockerfile).

This PR will resolve #39 and also resolve #42

@bbernhard
Copy link
Owner

very nice, many thanks for the contribution!

@bbernhard bbernhard merged commit c01abfa into bbernhard:master Nov 23, 2020
nomer pushed a commit to nomer/signal-cli-rest-api that referenced this pull request Mar 14, 2023
JRE Dependency Fix + Port Configuration
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.

Latest dev images not running on ARM (release blocker) Receiving 400 Response and API Timeout

2 participants