forked from hydrocode-de/RUINSapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 688 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (23 loc) · 688 Bytes
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
# default to python 3.10
ARG PYTHON_VERSION=3.10
# specify a version
FROM python:${PYTHON_VERSION}
LABEL maintainer="Mirko Mälicke"
# build the structure
RUN mkdir -p /src/ruins
RUN mkdir -p /src/data
# copy the sources
COPY ./ruins /src/ruins
COPY ./requirements.txt /src/requirements.txt
COPY ./setup.py /src/setup.py
COPY ./README.md /src/README.md
COPY ./LICENSE /src/LICENSE
# install
RUN pip install --upgrade pip
RUN cd /src && pip install -e .
# download and install the data
RUN python -c "from ruins.core import download_data_archive; download_data_archive()"
# create the streamlit entrypoint
WORKDIR /src/ruins/apps
ENTRYPOINT ["streamlit", "run" ]
CMD [ "weather.py" ]