Merge pull request 'merge fg-actions branch into main' (#1) from fg-actions into main

Reviewed-on: https://git.crafterpika.cc/kittentm/splatnet-backend/pulls/1
This commit is contained in:
kittentm 2026-02-28 04:07:31 +01:00
commit 73de7c7cb6
3 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,34 @@
name: backend
on:
push:
branches: [ fg-actions ]
jobs:
docker:
runs-on: docker
steps:
- name: checkout
uses: actions/checkout@v4
- name: install docker???
run: apt update && apt install wget -y && wget "https://download.docker.com/linux/debian/dists/bookworm/pool/stable/amd64/docker-ce-cli_29.2.1-1~debian.12~bookworm_amd64.deb" && dpkg --force-confold -i "docker-ce-cli_29.2.1-1~debian.12~bookworm_amd64.deb"
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
run: echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin
- name: build
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
run: docker build -t $DOCKER_USER/splatnet-backend:latest .
- name: push
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
run: docker push $DOCKER_USER/splatnet-backend:latest

21
dockerfile Normal file
View file

@ -0,0 +1,21 @@
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/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
WORKDIR /app/judd
RUN npm ci
WORKDIR /app
CMD ["python", "main.py"]

33
requirements.txt Normal file
View file

@ -0,0 +1,33 @@
annotated-doc==0.0.4
annotated-types==0.7.0
anyio==4.12.1
argon2-cffi==25.1.0
argon2-cffi-bindings==25.1.0
certifi==2026.2.25
cffi==2.0.0
charset-normalizer==3.4.4
click==8.3.1
colorama==0.4.6
cryptography==46.0.5
fastapi==0.134.0
greenlet==3.3.2
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.11
oead==1.2.9.post4
psycopg2-binary==2.9.11
pycparser==3.0
pydantic==2.12.5
pydantic-settings==2.13.1
pydantic_core==2.41.5
python-dotenv==1.2.1
python-multipart==0.0.22
PyYAML==6.0.3
requests==2.32.5
SQLAlchemy==2.0.47
starlette==0.52.1
typing-inspection==0.4.2
typing_extensions==4.15.0
urllib3==2.6.3
uvicorn==0.41.0