Skip to content

Instantly share code, notes, and snippets.

@T4rk1n
Created October 18, 2018 18:51
Show Gist options
  • Save T4rk1n/4b1ba89e629193ae531a020d62914cfc to your computer and use it in GitHub Desktop.
Save T4rk1n/4b1ba89e629193ae531a020d62914cfc to your computer and use it in GitHub Desktop.
assets-docker
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)
body {
background-color: darkcyan;
}
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