From a5032ed440759639d745afa8df24e864b2c670fe Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:21:19 +0100 Subject: [PATCH] Fix docker build --- .github/workflows/docker.yml | 3 ++- Dockerfile | 2 +- docker/docker-init.sh | 2 +- uv.lock | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c2fa8b8..11592ab 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -19,7 +19,8 @@ jobs: - name: Sync dependencies using uv run: | uv python pin ${{ matrix.python-version }} - uv sync + uv sync + rm -rf build/* dist/* *.egg-info uv build --wheel --out-dir dist - name: Build the Docker image run: | diff --git a/Dockerfile b/Dockerfile index d534dd6..f3a448e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN chmod +x usr/local/bin/docker-init.sh RUN cd / COPY dist/${STACOSYS_FILENAME} / RUN python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys -#RUN rm -f ${STACOSYS_FILENAME} +RUN rm -f ${STACOSYS_FILENAME} WORKDIR /stacosys CMD ["docker-init.sh"] diff --git a/docker/docker-init.sh b/docker/docker-init.sh index 19660c8..7c51f8e 100644 --- a/docker/docker-init.sh +++ b/docker/docker-init.sh @@ -6,4 +6,4 @@ cp -f stacosys/run.py . python3 run.py /config/config.ini # catch for debug -tail -f /dev/null \ No newline at end of file +#tail -f /dev/null \ No newline at end of file diff --git a/uv.lock b/uv.lock index 59809a6..afb15b0 100644 --- a/uv.lock +++ b/uv.lock @@ -411,7 +411,7 @@ wheels = [ [[package]] name = "stacosys" version = "3.4" -source = { virtual = "." } +source = { editable = "." } dependencies = [ { name = "background" }, { name = "flask" },