ci: update to use new build method

This commit is contained in:
kittentm 2026-03-28 03:24:10 +01:00
commit f3f5335639
No known key found for this signature in database
GPG key ID: AC43DFDBC1F44A91
2 changed files with 13 additions and 12 deletions

View file

@ -2,7 +2,7 @@ name: backend
on:
push:
branches: [ main ]
branches: ['**']
jobs:
docker:

View file

@ -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"]
RUN touch .env
# uses default
EXPOSE 5000
CMD ["splatnet"]