Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Stilwell committed Jun 3, 2024
1 parent d840bae commit 2e8db8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 80

CMD ["python", "./app.py"]
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ def get_celestial_body(n_clicks, name):

# Run the app
if __name__ == '__main__':
app.run_server(debug=True, host='0.0.0.0', port=8080)
app.run_server(debug=True, host='0.0.0.0', port=80)
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ version: '3.8'

services:
web:
image: python:3.9-slim
build: .
image: seanstilwell/dash-fsdh-sample:latest
container_name: dash-app
volumes:
- .:/app
working_dir: /app
command: bash -c "pip install --no-cache-dir -r requirements.txt && python app.py"
ports:
- "8080:8080"
- "80:80"

0 comments on commit 2e8db8d

Please sign in to comment.