File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
1414 --no-install-recommends \
1515 && rm -rf /var/lib/apt/lists/*
1616
17- RUN python -m venv /venv
17+ # RUN python -m venv /venv
1818# normall we do some uv here; but for simplicity lets not
19- ENV PATH="/venv/bin:$PATH"
20- RUN /venv/bin/python -m pip install pydantic
19+ # ENV PATH="/venv/bin:$PATH"
20+ # RUN /venv/bin/python -m pip install pydantic
2121
2222# install rust
2323RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
@@ -30,7 +30,7 @@ COPY ./component /component
3030RUN bash /component/build_pydantic.sh
3131
3232# copy to venv location
33- RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
33+ # RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
3434
3535WORKDIR /component
3636
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
1414 --no-install-recommends \
1515 && rm -rf /var/lib/apt/lists/*
1616
17- RUN python -m venv /venv
17+ # RUN python -m venv /venv
1818# normall we do some uv here; but for simplicity lets not
19- ENV PATH="/venv/bin:$PATH"
20- RUN /venv/bin/python -m pip install pydantic
19+ # ENV PATH="/venv/bin:$PATH"
20+ # RUN /venv/bin/python -m pip install pydantic
2121
2222# install pydantic wasi to folder
23- RUN pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: --index-url https://benbrandt.github.io/wasi-wheels/ --extra-index-url https://pypi.org/simple --upgrade pydantic_core
23+ RUN pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: --index-url https://benbrandt.github.io/wasi-wheels/ --extra-index-url https://pypi.org/simple --upgrade pydantic_core pydantic
2424
2525# copy to venv location
26- RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
26+ # RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
2727
2828RUN pip install componentize-py
2929COPY ./app /app
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ cargo run -- build pydantic-core 2.33.2 --python-versions py3-13
1919
2020# install wheel
2121pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version " 3.13" --only-binary :all: ` find . -name \* cp313-cp313-wasi_0_0_0_wasm32.whl`
22+ pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version " 3.13" --only-binary :all: pydantic
You can’t perform that action at this time.
0 commit comments