Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Jun 2, 2024
1 parent 1098084 commit dd7ab48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ FROM python:3.8-slim

# referencing docker compose (find wiki) #
ENV PORT ${PORT}
ENV HOST ${HOST}

WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
EXPOSE 8060
EXPOSE ${PORT}

# run dash application
CMD ["python3", "main.py"]
6 changes: 5 additions & 1 deletion main.py → app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# import <
from os import environ
from source.frontend.layout import layout
from source.frontend.callbacks import callbacks
from source.configuration import (application, server)
Expand All @@ -7,12 +8,15 @@


if (__name__ == '__main__'):

host = environ.get('HOST')
port = environ.get('PORT')

objLayout = layout()
objCallbacks = callbacks()

objCallbacks.register()
application.layout = objLayout.layout

application.run(host = '0.0.0.0', port = 8060)
application.run(host = host, port = port)

0 comments on commit dd7ab48

Please sign in to comment.