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: on:
push: push:
branches: [ main ] branches: ['**']
jobs: jobs:
docker: docker:

View file

@ -1,21 +1,22 @@
FROM python:3.11-slim FROM python:3.11-slim
RUN apt-get update && apt-get install -y curl build-essential \ RUN apt-get update && apt-get install -y curl build-essential \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \ && apt-get install -y nodejs \
&& npm install -g npm@latest \ && npm install -g npm@latest \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
WORKDIR /app WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
WORKDIR /app/judd RUN cd judd && npm ci
RUN npm ci
WORKDIR /app RUN pip install --no-cache-dir .
CMD ["python", "main.py"] RUN touch .env
# uses default
EXPOSE 5000
CMD ["splatnet"]