上传文件至 docker

This commit is contained in:
yanweidong 2024-10-04 19:42:31 +08:00
parent d14b5c0758
commit 771d5d811e
2 changed files with 11 additions and 0 deletions

10
docker/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
#bsm workspace
FROM alpine:latest
RUN apk --no-cache add ca-certificates
RUN mkdir -p /usr/local/bsm
ENTRYPOINT /usr/local/bsm
RUN curl -L -o /usr/bin/bsm http://oss.apinb.com/reles/bsm/bsm-tools/bsm@v0.1.2/bsm && chmod +x /usr/bin/bsm
RUN bsm install initialize
RUN bsm install passport
RUN bsm install notify
EXPOSE 12202 12218

1
docker/run.sh Normal file
View File

@ -0,0 +1 @@
docker run -d --network=host -e "BlocksMesh_Workspace=senlinai" -e "BlocksMesh_Workspace=Cblocksmesh2022C" -e "BlocksMesh_RuntimeMode=prod" senlinai bsm:latest