Spaces:
Sleeping
Sleeping
hackery with pup injection 4 it worked lol
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
@@ -15,17 +15,14 @@ WORKDIR $HOME/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
|
19 |
-
RUN pup add env_sql altair duckdb pandas plotly polars pyarrow
|
20 |
RUN pup list
|
21 |
RUN cp -r ./.pixi/envs/default/lib/python3.12/site-packages/marimo/_tutorials . && mv _tutorials marimo_tutorials
|
22 |
|
23 |
EXPOSE 7860
|
24 |
CMD pixi run python -c \
|
25 |
-
'import pup, runpy; pup.fetch("
|
26 |
tutorial sql --host 0.0.0.0 --port 7860 --no-token
|
27 |
|
28 |
-
#
|
29 |
-
|
30 |
-
# deploy without installing
|
31 |
-
# CMD ["pixi", "run", "uvx", "marimo", "tutorial", "intro", "--host", "0.0.0.0", "--port", "7860", "--no-token"]
|
|
|
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 sql_and_plots altair duckdb matplotlib pandas plotly polars pyarrow
|
|
|
19 |
RUN pup list
|
20 |
RUN cp -r ./.pixi/envs/default/lib/python3.12/site-packages/marimo/_tutorials . && mv _tutorials marimo_tutorials
|
21 |
|
22 |
EXPOSE 7860
|
23 |
CMD pixi run python -c \
|
24 |
+
'import pup, runpy; pup.fetch("sql_and_plots"); runpy.run_path(".pixi/envs/default/bin/marimo", run_name="__main__")' \
|
25 |
tutorial sql --host 0.0.0.0 --port 7860 --no-token
|
26 |
|
27 |
+
# original command will not load the sql_and_plots venv
|
28 |
+
# CMD ["pixi", "run", "marimo", "tutorial", "sql", "--host", "0.0.0.0", "--port", "7860", "--no-token"]
|
|
|
|