5 Commits
Author SHA1 Message Date
Sweetbread d98bd7d6d8 fixup! Rework my page and add info from listenbrainz
Docker Build and Push / build-and-push (push) Successful in 38s
2026-02-04 15:04:22 +03:00
Sweetbread 8c1ffdcdfe Add OG meta 2026-02-04 14:44:11 +03:00
Sweetbread b78e4185d1 Add Steam info 2026-02-04 14:44:11 +03:00
Sweetbread bf05be13ea Delete otoring >: 2026-02-04 14:43:10 +03:00
Sweetbread b030991905 Rework my page and add info from listenbrainz 2026-02-04 14:43:10 +03:00
3 changed files with 12 additions and 39 deletions
-7
View File
@@ -11,12 +11,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: 'Docker Tags'
id: tags
uses: cssnr/docker-tags-action@v2
with:
images: 'g.lair.moe/${{ vars.DOCKER_USERNAME }}/lair.moe'
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
@@ -33,6 +27,5 @@ jobs:
context: .
push: ${{ github.event_name == 'push' }}
tags: g.lair.moe/${{ vars.DOCKER_USERNAME }}/lair.moe:latest
labels: ${{ steps.tags.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
+11 -32
View File
@@ -1,46 +1,25 @@
FROM node:18-alpine AS sass-builder
FROM node:18-alpine as sass
RUN npm install -g sass@latest --omit=dev --no-fund --no-audit
RUN NODE_OPTIONS=--dns-result-order=ipv4first npm install -g sass
WORKDIR /build
COPY ./blueprints ./blueprints
RUN sass ./blueprints:./blueprints \
--no-source-map \
--style=compressed \
--quiet
--style=compressed
FROM python:3.11-slim
RUN apt-get update && \
apt-get install --no-install-recommends -y \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --no-deps -r requirements.txt
COPY . .
COPY --from=sass /build/blueprints/ ./blueprints/
COPY --from=sass-builder /build/blueprints/ ./blueprints/
RUN apt update && apt upgrade
RUN apt install libmagic1 -y
RUN pip install --no-cache-dir -r requirements.txt
RUN useradd -m -u 1001 appuser && \
chown -R appuser:appuser /app
ENV FLASK_ENV=production
ENV PYTHONUNBUFFERED=1
USER appuser
ENV FLASK_ENV=production \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
CMD ["gunicorn", "app:app", \
"-b", "0.0.0.0:80", \
"--workers", "4", \
"--worker-class", "sync", \
"--worker-tmp-dir", "/dev/shm", \
"--access-logfile", "-", \
"--error-logfile", "-", \
"--log-level", "info"]
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80", "--workers", "4"]
@@ -5,6 +5,7 @@
<link rel="stylesheet" href="/static/style/main.css">
<link rel="stylesheet" href="/static/style/risdeveau.css">
<link rel="stylesheet" href="/static/style/track.css">
<link rel="icon" type="image/webp" href="/static/icon/us/risdeveau.webp" />
<script
src="https://track.lair.moe/api/script.js"