mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-07 20:19:51 +00:00
CI: Build and publish (#7)
Reviewed-on: https://git.unlock-music.dev/um/lib_um_crypto_rust/pulls/7 Co-authored-by: 鲁树人 <lu.shuren@um-react.app> Co-committed-by: 鲁树人 <lu.shuren@um-react.app>
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM rust:1.81-bookworm
|
||||
|
||||
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
ARG uid=1998
|
||||
ARG gid=1998
|
||||
|
||||
RUN groupadd -g "$gid" builder \
|
||||
&& useradd -u "$uid" -g "$gid" -m -d /h builder
|
||||
|
||||
USER builder
|
||||
|
||||
RUN curl -fsL https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
|
||||
RUN git config --global --add safe.directory /a
|
||||
ENV PATH="/h/.local/share/pnpm:$PATH"
|
||||
|
||||
WORKDIR /a
|
||||
CMD ["/usr/bin/sleep", "infinity"]
|
||||
Reference in New Issue
Block a user