Compare commits
3 Commits
ee41b64af0
...
master
Author | SHA1 | Date | |
---|---|---|---|
b8b9faa8f5
|
|||
3564af2a21
|
|||
0383ba2a82
|
@ -91,13 +91,11 @@ jobs:
|
|||||||
# Extract metadata (tags, labels) from Git reference and GitHub events for Docker
|
# Extract metadata (tags, labels) from Git reference and GitHub events for Docker
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: https://github.com/docker/metadata-action@v5
|
uses: https://github.com/docker/metadata-action@v5
|
||||||
env:
|
|
||||||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
ghcr.io/thelovinator1/discord-embed
|
ghcr.io/thelovinator1/discord-embed
|
||||||
thelovinator/discord-nice-embed-maker-for-my-yoy
|
thelovinator/discord-nice-embed-maker-for-my-yoy
|
||||||
git.lovinator.space/thelovinator/anewdawn
|
git.lovinator.space/thelovinator/discord-embed
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }}
|
type=raw,value=latest,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }}
|
||||||
type=raw,value=master,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }}
|
type=raw,value=master,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }}
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -5,8 +5,10 @@
|
|||||||
"docstrings",
|
"docstrings",
|
||||||
"dotenv",
|
"dotenv",
|
||||||
"fastapi",
|
"fastapi",
|
||||||
|
"ffprobe",
|
||||||
"httpx",
|
"httpx",
|
||||||
"isort",
|
"isort",
|
||||||
|
"jrottenberg",
|
||||||
"pycodestyle",
|
"pycodestyle",
|
||||||
"pydocstyle",
|
"pydocstyle",
|
||||||
"pyproject",
|
"pyproject",
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# check=error=true;experimental=all
|
# check=error=true;experimental=all
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM ghcr.io/jrottenberg/ffmpeg:7.1-scratch
|
FROM --platform=$BUILDPLATFORM ghcr.io/jrottenberg/ffmpeg:7.1-scratch AS ffmpeg
|
||||||
|
FROM --platform=$BUILDPLATFORM python:3.13-slim-bookworm AS base
|
||||||
|
COPY --from=ffmpeg /bin/ffmpeg /bin/ffprobe /usr/local/bin/
|
||||||
|
COPY --from=ffmpeg /lib /lib
|
||||||
|
COPY --from=ffmpeg /share /share
|
||||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
@ -10,7 +14,7 @@ ENV UV_COMPILE_BYTECODE=1
|
|||||||
ENV UV_LINK_MODE=copy
|
ENV UV_LINK_MODE=copy
|
||||||
ENV UV_NO_CACHE=1
|
ENV UV_NO_CACHE=1
|
||||||
|
|
||||||
RUN apk add --no-cache shadow python3 && useradd --create-home botuser && mkdir /Uploads && chown botuser:botuser /Uploads
|
RUN useradd --create-home botuser && mkdir /Uploads && chown botuser:botuser /Uploads
|
||||||
USER botuser
|
USER botuser
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
Reference in New Issue
Block a user