-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 829 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (22 loc) · 829 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.12-slim
LABEL org.opencontainers.image.title="Luvoire Playground" \
org.opencontainers.image.description="Self-hosted Luvoire Playground container." \
org.opencontainers.image.source="https://github.com/Celovin/luvoire" \
org.opencontainers.image.url="https://github.com/Celovin/luvoire"
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY pyproject.toml README.md LICENSE ./
COPY src ./src
COPY playground ./playground
RUN python -m pip install --upgrade pip \
&& python -m pip install . \
&& python -m pip install \
"gradio==5.31.0" \
"huggingface_hub>=0.24,<1.0" \
"plotly>=5.24" \
"pyyaml>=6.0" \
"scipy>=1.14"
EXPOSE 7860
CMD ["luvoire", "playground", "--host", "0.0.0.0", "--port", "7860"]