update entrypoints

This commit is contained in:
cwilvx
2025-04-03 14:45:56 +03:00
parent 8b0f40ee4c
commit 37a4458755
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ jobs:
# python -m poetry install # python -m poetry install
- name: Build server - name: Build server
run: | run: |
python manage.py --build python main.py --build
env: env:
SWINGMUSIC_APP_VERSION: ${{ inputs.tag }} SWINGMUSIC_APP_VERSION: ${{ inputs.tag }}
- name: Rename Linux binary - name: Rename Linux binary
+2 -3
View File
@@ -25,8 +25,7 @@ VOLUME /music
VOLUME /config VOLUME /config
RUN apt-get update && apt-get install -y gcc libev-dev python3-dev -y ffmpeg libavcodec-extra gcc-aarch64-linux-gnu && \
RUN apt-get update && apt-get install -y gcc python3-dev -y ffmpeg libavcodec-extra gcc-aarch64-linux-gnu && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
@@ -35,4 +34,4 @@ RUN pip install -r requirements.txt
ARG app_version ARG app_version
ENV SWINGMUSIC_APP_VERSION=$app_version ENV SWINGMUSIC_APP_VERSION=$app_version
ENTRYPOINT ["python", "manage.py", "--host", "0.0.0.0", "--config", "/config"] ENTRYPOINT ["python", "main.py", "--host", "0.0.0.0", "--config", "/config"]
+1 -1
View File
@@ -44,7 +44,7 @@ cd ../swingmusic
# poetry install # poetry install
# Swing gives error if this is not set. Set to version of repo you cloned. # Swing gives error if this is not set. Set to version of repo you cloned.
export SWINGMUSIC_APP_VERSION="TAG" export SWINGMUSIC_APP_VERSION="TAG"
python manage.py --build python main.py --build
# rename binary # rename binary
mv dist/swingmusic dist/swingmusic_linux_arm64 mv dist/swingmusic dist/swingmusic_linux_arm64