Skip to content

Commit

Permalink
Merge pull request #703 from keboola/miro-PST-2285
Browse files Browse the repository at this point in the history
feat (data-apps): update base image
  • Loading branch information
MiroCillik authored Nov 26, 2024
2 parents 677b662 + 402e3ba commit 9c8039d
Showing 1 changed file with 105 additions and 75 deletions.
180 changes: 105 additions & 75 deletions components/data-apps/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,33 +239,49 @@ This image already has Streamlit and a few other basic packages pre-installed:
```
# Dockerfile
FROM python:3.8-slim
RUN groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid 1000 -ms /bin/bash appuser
RUN pip3 install --no-cache-dir --upgrade \
pip \
virtualenv
RUN apt-get update && apt-get install -y \
build-essential \
software-properties-common \
git \
jq \
vim
FROM python:3.10-slim
RUN mkdir -m 777 /data
USER appuser
WORKDIR /home/appuser
RUN mkdir -m 777 /data \
&& groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid 1000 -ms /bin/bash appuser
ENV VIRTUAL_ENV=/home/appuser/venv
RUN virtualenv ${VIRTUAL_ENV}
RUN apt-get update && apt-get install -y \
build-essential \
software-properties-common \
git \
jq \
graphviz \
graphviz-dev \
vim \
ssh \
curl \
&& rm -rf /var/lib/apt/lists/*
ENV STREAMLIT_SERVER_PORT=8888
EXPOSE 8888
COPY run.sh /home/appuser
WORKDIR /home/appuser
USER appuser
ENV PATH="${PATH}:/home/appuser/.local/bin"
# pre install streamlit
RUN mkdir .streamlit \
&& pip install --no-cache-dir \
deepmerge \
graphviz \
matplotlib \
numpy \
pandas \
plotly \
python-dotenv \
scikit-learn \
seaborn \
streamlit \
streamlit-aggrid \
streamlit-keboola-api \
streamlit_authenticator==0.3.1
COPY src /home/appuser
ENTRYPOINT ["./run.sh"]
```

Expand All @@ -274,60 +290,74 @@ ENTRYPOINT ["./run.sh"]
Package Version
------------------------- -----------
altair 5.0.1
attrs 23.1.0
backports.zoneinfo 0.2.1
blinker 1.6.2
cachetools 5.3.1
certifi 2023.7.22
charset-normalizer 3.2.0
click 8.1.6
decorator 5.1.1
gitdb 4.0.10
GitPython 3.1.32
idna 3.4
importlib-metadata 6.8.0
importlib-resources 6.0.0
Jinja2 3.1.2
jsonschema 4.18.4
jsonschema-specifications 2023.7.1
markdown-it-py 3.0.0
MarkupSafe 2.1.3
mdurl 0.1.2
numpy 1.24.4
packaging 23.1
pandas 2.0.3
Pillow 9.5.0
pip 23.1.2
pkgutil_resolve_name 1.3.10
protobuf 4.23.4
pyarrow 12.0.1
pydeck 0.8.0
Pygments 2.15.1
Pympler 1.0.1
python-dateutil 2.8.2
pytz 2023.3
pytz-deprecation-shim 0.1.0.post0
referencing 0.30.0
requests 2.31.0
rich 13.4.2
rpds-py 0.9.2
setuptools 67.7.2
six 1.16.0
smmap 5.0.0
streamlit 1.25.0
tenacity 8.2.2
toml 0.10.2
toolz 0.12.0
tornado 6.3.2
typing_extensions 4.7.1
tzdata 2023.3
tzlocal 4.3.1
urllib3 2.0.4
validators 0.20.0
watchdog 3.0.0
wheel 0.40.0
zipp 3.16.2
altair 4.2.2
attrs 24.2.0
bcrypt 4.2.1
blinker 1.9.0
cachetools 5.5.0
certifi 2024.8.30
charset-normalizer 3.4.0
click 8.1.7
contourpy 1.3.1
cycler 0.12.1
deepmerge 2.0
entrypoints 0.4
extra-streamlit-components 0.1.71
fonttools 4.55.0
gitdb 4.0.11
GitPython 3.1.43
graphviz 0.20.3
idna 3.10
Jinja2 3.1.4
joblib 1.4.2
jsonschema 4.23.0
jsonschema-specifications 2024.10.1
kiwisolver 1.4.7
markdown-it-py 3.0.0
MarkupSafe 3.0.2
matplotlib 3.9.2
mdurl 0.1.2
numpy 2.1.3
packaging 24.2
pandas 2.2.3
pillow 11.0.0
pip 23.0.1
plotly 5.24.1
protobuf 5.28.3
pyarrow 18.0.0
pydeck 0.9.1
Pygments 2.18.0
PyJWT 2.10.0
pyparsing 3.2.0
python-dateutil 2.9.0.post0
python-decouple 3.8
python-dotenv 1.0.1
pytz 2024.2
PyYAML 6.0.2
referencing 0.35.1
requests 2.32.3
rich 13.9.4
rpds-py 0.21.0
scikit-learn 1.5.2
scipy 1.14.1
seaborn 0.13.2
setuptools 65.5.1
six 1.16.0
smmap 5.0.1
streamlit 1.40.1
streamlit-aggrid 1.0.5
streamlit-authenticator 0.3.1
streamlit-keboola-api 0.2.0
tenacity 9.0.0
threadpoolctl 3.5.0
toml 0.10.2
toolz 1.0.0
tornado 6.4.2
typing_extensions 4.12.2
tzdata 2024.2
urllib3 2.2.3
watchdog 6.0.0
wheel 0.45.0
```

Please note that the versions of these packages may change, as the newest version of the Streamlit package is used upon deployment unless explicitly specified in the `Packages` field.
Expand Down

0 comments on commit 9c8039d

Please sign in to comment.