Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Sep 5, 2024
1 parent c75f2fa commit 549b4f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# official Python image as the base image
FROM python:3.8-slim

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


WORKDIR /app

COPY . .

RUN pip install -r requirements.txt
EXPOSE ${PORT}

EXPOSE ${port}

# run dash application
CMD ["python3", "app.py"]
CMD ["python", "app.py"]
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

if (__name__ == '__main__'):

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

objLayout = layout()
objCallbacks = callbacks()
Expand Down

0 comments on commit 549b4f8

Please sign in to comment.