-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM python:3.8-slim-buster | ||
|
||
ENV LANG=C.UTF-8 \ | ||
LC_ALL=C.UTF-8 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
curl build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN useradd -d /home/docker_user -m -s /bin/bash docker_user | ||
USER docker_user | ||
|
||
RUN mkdir -p /home/docker_user/workspace | ||
WORKDIR /home/docker_user/workspace | ||
|
||
# Install Poetry | ||
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/main/install-poetry.py | POETRY_HOME=/home/docker_user/poetry python | ||
|
||
ENV PATH="${PATH}:/home/docker_user/.poetry/bin:/home/docker_user/poetry/bin" | ||
|
||
COPY pyproject.toml ./ | ||
COPY poetry.lock ./ | ||
|
||
RUN poetry install --no-root --no-dev | ||
|
||
COPY . /home/docker_user/workspace/ | ||
|
||
EXPOSE 8080 | ||
|
||
# Set the entry point to run the Streamlit application | ||
ENTRYPOINT ["poetry", "run", "streamlit_prophet", "deploy", "dashboard_with_base_path"] |
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
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