-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathui.dockerfile
More file actions
30 lines (17 loc) · 577 Bytes
/
ui.dockerfile
File metadata and controls
30 lines (17 loc) · 577 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
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get -y install build-essential \
&& apt-get -y install gcc \
&& apt-get clean
RUN pip install poetry==1.6.1
RUN poetry config virtualenvs.create false
WORKDIR /code
COPY ./pyproject.toml ./README.md ./poetry.lock* ./
COPY ./package[s] ./packages
RUN poetry install --no-interaction --no-ansi --no-root
COPY ./app ./app
RUN poetry install --no-interaction --no-ansi
EXPOSE 8501
CMD exec streamlit run app/ui.py --server.port 8501 --server.address 0.0.0.0