Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Multi-stage image on python:3.13-slim-trixie, frpc 0.71.0

Aberta
#261 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@WSHAPER já está trabalhando nisso.

Desde 12/10/2026.

  • #262 de @WSHAPER — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
docker, python
Domínio
devops, security

Direção de pesquisa

Read the Dockerfile and inspect the linked pull request #262, which already contains this work. The issue reports manual checks for building the image, counting installed packages, checking frpc --version, and importing main; compare those checks with the proposed image changes to judge completion.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

priority high

A scan of the shipped image flags mostly base-image noise: the plain apt-get install honors Recommends, so the build toolchain drags in libheif/libtiff/X11 and pipx pulls mkdocs/nltk/numpy (nothing the app uses at runtime). vim, git, curl, an SSH client and perl ship too.

Toolchain moves to a builder stage; the runtime carries the interpreter, the app venv, frpc and procps. That drops the compilers, codec parsers and network clients an attacker could leverage, and most of the bookworm package tail. frpc now comes from the official fatedier releases, SHA256-verified (the HaRP mirror is old and unsigned).

Image is about a third of the size, runtime under a hundred packages, findings down by well over 90% on a local rescan. The one remaining Critical needs a major-version migration elsewhere.

Manual testing:

docker build --network=host -t context-agent:test .     # BuildKit DNS needs host networking on some hosts
docker run --rm --entrypoint dpkg-query context-agent:test -l | grep -c '^ii '
docker run --rm --entrypoint frpc context-agent:test --version                   # 0.71.0
docker run --rm --env-file test.env --entrypoint /opt/app/.venv/bin/python context-agent:test -c 'import main'

--entrypoint matters — start.sh otherwise eats the args.

Linguagem predominante
Python
Estrelas
26
Forks
20
Merge médio
2d 9h
PRs com merge (30d)
4

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de nextcloud/context_agent

Todas as issues de nextcloud/context_agent

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.