app = dash.Dash(__name__) .. if __name__ == '__main__': app.run_server(host='0.0.0.0', port=8050)
pip freeze > requirements.txt
FROM python:3.7.10 WORKDIR /usr/src/app COPY . . RUN pip install -r requirements.txt EXPOSE 8050 CMD ["python", "./app.py"]
docker build -t perceptor .
docker run -p 8050:8050 perceptor