pup-py commited on
Commit
bbbc86c
·
1 Parent(s): dc04cb8
Files changed (1) hide show
  1. Dockerfile +12 -6
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM debian:latest AS base
2
 
3
  RUN apt-get update \
4
  && apt-get install -y curl \
@@ -10,12 +10,18 @@ ENV HOME=/home/user \
10
  PATH=/home/user/.local/bin:/home/user/.pixi/bin:$PATH
11
 
12
  RUN mkdir $HOME/puppy
13
-
14
- # prep puppy
15
- FROM base AS puppy
16
  WORKDIR $HOME/puppy
17
  RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.12
18
- RUN ./pup.py
 
 
 
 
 
19
 
20
  EXPOSE 7860
21
- CMD ["pixi", "run", "uvx", "marimo", "tutorial", "intro", "--host", "0.0.0.0", "--port", "7860", "--no-token"]
 
 
 
 
 
1
+ FROM ubuntu:latest AS puppy
2
 
3
  RUN apt-get update \
4
  && apt-get install -y curl \
 
10
  PATH=/home/user/.local/bin:/home/user/.pixi/bin:$PATH
11
 
12
  RUN mkdir $HOME/puppy
 
 
 
13
  WORKDIR $HOME/puppy
14
  RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.12
15
+ RUN pixi add marimo
16
+ RUN . <(tail -1 pup.sh)
17
+ RUN pup
18
+ RUN pup fetch hf pandas
19
+ RUN pup list .
20
+ RUN pup list hf
21
 
22
  EXPOSE 7860
23
+
24
+ CMD ["pixi", "run", "marimo", "tutorial", "intro", "--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"]