Spaces:
Running
Running
pup v2
Browse files- Dockerfile +8 -11
Dockerfile
CHANGED
@@ -4,27 +4,24 @@ FROM debian:latest AS puppy
|
|
4 |
RUN apt-get update \
|
5 |
&& apt-get install -y curl \
|
6 |
&& apt-get clean
|
7 |
-
|
8 |
RUN useradd -m -u 1000 user
|
9 |
USER user
|
10 |
-
|
11 |
-
|
12 |
-
PUP=/home/user/.pixi/bin/pup
|
13 |
RUN mkdir $HOME/puppy
|
14 |
WORKDIR $HOME/puppy
|
15 |
|
16 |
# install puppy
|
17 |
RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.12
|
18 |
-
RUN echo '#!/bin/bash\n/home/user/puppy/pup.py "$@"' > $PUP && chmod +x $PUP
|
19 |
RUN pup
|
20 |
-
RUN pixi
|
21 |
-
RUN pup
|
22 |
-
RUN pup list
|
23 |
-
RUN cp -r
|
24 |
|
25 |
EXPOSE 7860
|
26 |
|
27 |
-
CMD ["pixi", "run", "
|
28 |
|
29 |
# deploy without installing
|
30 |
-
# CMD ["pixi", "run", "uvx", "marimo", "tutorial", "intro", "--host", "0.0.0.0", "--port", "7860", "--no-token"]
|
|
|
4 |
RUN apt-get update \
|
5 |
&& apt-get install -y curl \
|
6 |
&& apt-get clean
|
|
|
7 |
RUN useradd -m -u 1000 user
|
8 |
USER user
|
9 |
+
|
10 |
+
ENV PATH=/home/user/.pixi/bin:$PATH
|
|
|
11 |
RUN mkdir $HOME/puppy
|
12 |
WORKDIR $HOME/puppy
|
13 |
|
14 |
# install puppy
|
15 |
RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.12
|
|
|
16 |
RUN pup
|
17 |
+
RUN pixi add marimo
|
18 |
+
RUN pup add env1 altair matplotlib
|
19 |
+
RUN pup list env1
|
20 |
+
RUN cp -r ./.pixi/envs/default/lib/python3.12/site-packages/marimo/_tutorials . && mv _tutorials marimo_tutorials
|
21 |
|
22 |
EXPOSE 7860
|
23 |
|
24 |
+
CMD ["pixi", "run", "marimo", "tutorial", "plots", "--host", "0.0.0.0", "--port", "7860", "--no-token"]
|
25 |
|
26 |
# deploy without installing
|
27 |
+
# CMD ["pixi", "run", "uvx", "marimo", "tutorial", "intro", "--host", "0.0.0.0", "--port", "7860", "--no-token"]
|