From f3f53356398d72dd458d27101d4e2f4a9a79a422 Mon Sep 17 00:00:00 2001 From: KittenTM Date: Sat, 28 Mar 2026 03:24:10 +0100 Subject: [PATCH] ci: update to use new build method --- .forgejo/workflows/build.yml | 2 +- dockerfile | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index cbf7a6f..6382622 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -2,7 +2,7 @@ name: backend on: push: - branches: [ main ] + branches: ['**'] jobs: docker: diff --git a/dockerfile b/dockerfile index 6ec5b14..82a20d7 100644 --- a/dockerfile +++ b/dockerfile @@ -1,21 +1,22 @@ FROM python:3.11-slim RUN apt-get update && apt-get install -y curl build-essential \ - && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ - && apt-get install -y nodejs \ - && npm install -g npm@latest \ - && rm -rf /var/lib/apt/lists/* + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y nodejs \ + && npm install -g npm@latest \ + && rm -rf /var/lib/apt/lists/* WORKDIR /app -COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt - COPY . . -WORKDIR /app/judd -RUN npm ci +RUN cd judd && npm ci -WORKDIR /app +RUN pip install --no-cache-dir . -CMD ["python", "main.py"] \ No newline at end of file +RUN touch .env + +# uses default +EXPOSE 5000 + +CMD ["splatnet"] \ No newline at end of file