-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (27 loc) · 949 Bytes
/
Dockerfile
File metadata and controls
43 lines (27 loc) · 949 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
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends curl \
build-essential \
git \
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Scyros
RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/fxpl/scyros/releases/latest/download/scyros-installer.sh | sh
# Python
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# uv installs to ~/.local/bin by default
ENV PATH="/root/.local/bin:${PATH}"
WORKDIR /app
COPY .python-version pyproject.toml ./
RUN uv python install && \
uv venv &&\
uv sync
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
COPY .streamlit ./.streamlit
COPY Scyros_Tutorial.py helpers.py ./
EXPOSE 8501
ENTRYPOINT [".venv/bin/python","-m","streamlit","run","Scyros_Tutorial.py","--server.address=0.0.0.0","--server.port=8501","--server.headless=true"]