Created
October 18, 2018 18:51
-
-
Save T4rk1n/4b1ba89e629193ae531a020d62914cfc to your computer and use it in GitHub Desktop.
assets-docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dash | |
import dash_html_components as html | |
app = dash.Dash(__name__) | |
app.layout = html.Div([ | |
html.H1('Hello world') | |
]) | |
if __name__ == '__main__': | |
app.run_server(host='0.0.0.0', port=8050) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: darkcyan; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dash | |
dash-html-components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
RUN mkdir /app | |
COPY app/ /app | |
RUN apt-get update && apt-get upgrade -y | |
RUN apt-get install python python-pip -y | |
RUN pip install -r /app/requirements.txt | |
EXPOSE 8050 | |
ENTRYPOINT ["python", "/app/app.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment