diff --git a/Dockerfile b/Dockerfile index 995df04..b3889b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,6 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . +EXPOSE 80 + CMD ["python", "./app.py"] \ No newline at end of file diff --git a/app.py b/app.py index 8cad661..9bf4acb 100644 --- a/app.py +++ b/app.py @@ -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) \ No newline at end of file + app.run_server(debug=True, host='0.0.0.0', port=80) \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8bd6017..06dd7e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" \ No newline at end of file + - "80:80" \ No newline at end of file