Skip to content

Commit 3d2aa4d

Browse files
committed
Add build script.
1 parent 2bf344e commit 3d2aa4d

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from python:3-alpine
22

3-
run apk add --no-cache --virtual .build-deps gcc g++ make libffi-dev openssl-dev
3+
run apk add --no-cache --virtual .build-deps gcc g++ make libffi-dev openssl-dev git
44

5-
copy ["README.md", "setup.py", "/modbus4mqtt/"]
6-
copy ["./modbus4mqtt/*", "/modbus4mqtt/modbus4mqtt/"]
5+
copy ["./dist/*.whl", "/modbus4mqtt/"]
76

8-
run pip install /modbus4mqtt
7+
run pip install /modbus4mqtt/*.whl
98

109
run apk del .build-deps
1110

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
rm -r dist
4+
uv build .
5+
docker build -t tjhowse/modbus4mqtt:1.0.0-rc1 .

0 commit comments

Comments
 (0)