-
Notifications
You must be signed in to change notification settings - Fork 207
/
Dockerfile.Artefact
32 lines (21 loc) · 883 Bytes
/
Dockerfile.Artefact
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"]