Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tags:
- 'v*'

permissions:
contents: read

jobs:
release:
name: Generate New Release - ${{ github.ref_name }}
Expand Down
2 changes: 2 additions & 0 deletions .trivyignore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
misconfigurations:
- id: AVD-DS-0026
20 changes: 12 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# syntax=docker/dockerfile:1

ARG PYTHON_VERSION=3.13

FROM python:${PYTHON_VERSION}-slim AS build
FROM python:3.13-slim@sha256:6771159cd4fa5d9bba1258caf0b82e6b73458c694d178ad97c5e925c2d0e1a91 AS build

WORKDIR /build

RUN pip install pipx==1.7.1
RUN pipx install hatch==1.13.0
# we are unable to use the --require-hashes option as there is no local file defining the hashes
# this is what pip uses for comparison by default.
# However, it can compare the hash against PyPI's hash.
# Since PyPI sends requests over TLS, this should be secure enough for our threat model.
# https://pypi.org/project/pipx/
RUN pip install pipx==1.7.1 --hash=sha256:a575ced25c507c1b1c978269f5684b5b291e81e3cd14eb3cee196a3c5b304732
# https://pipx.pypa.io/latest/how-to/pin-packages.html
RUN pipx install hatch==1.13.0 && pipx pin hatch

COPY . .

Expand All @@ -18,13 +22,13 @@ RUN hatch build
########################

# linux/amd64 arch
FROM python:${PYTHON_VERSION}-alpine@sha256:81362dd1ee15848b118895328e56041149e1521310f238ed5b2cdefe674e6dbf
FROM python:3.13-alpine@sha256:81362dd1ee15848b118895328e56041149e1521310f238ed5b2cdefe674e6dbf

RUN apk update && \
apk add --no-cache libmagic

RUN addgroup --system --gid 888 plexer && \
adduser --system --uid 888 --ingroup plexer plexer
RUN addgroup --system --gid 1001 plexer && \
adduser --system --uid 1001 --ingroup plexer plexer

WORKDIR /app

Expand Down
Loading