build: 增加 Docker
This commit is contained in:
parent
7c12c00e59
commit
61cb7d4e72
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
|
||||
#ENV RUSTUP_DIST_SERVER="https://rsproxy.cn"
|
||||
#ENV RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
|
||||
#RUN curl -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN python -m pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
5
build-and-publish.sh
Executable file
5
build-and-publish.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
docker build -t reg.kas.pub/bhyg --network host .
|
||||
docker push reg.kas.pub/bhyg
|
4
docker-run.sh
Executable file
4
docker-run.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
docker run -v $(pwd):/app -it reg.kas.pub/bhyg $@
|
Loading…
x
Reference in New Issue
Block a user