clean container image
/ build-image (push) Successful in 1m5s

This commit is contained in:
Márcio Fernandes
2026-07-18 11:15:50 +00:00
parent 0a71e0c2ba
commit dc740a119a
3 changed files with 27 additions and 24 deletions
+14 -7
View File
@@ -1,15 +1,22 @@
name: pbsclient-dev
services:
app:
shell:
build:
dockerfile: docker/Dockerfile
context: ../
command: ${COMMAND}
dockerfile: Dockerfile
context: ../docker
entrypoint: bash -c
command: "echo hello && tail -f /dev/null"
environment:
- APP_ENV=${APP_ENV}
- PBS_PASSWORD=${PBS_PASSWORD}
- PBS_REPOSITORY=${PBS_REPOSITORY}
- PBS_FINGERPRINT=${PBS_FINGERPRINT}
- MODE=${MODE}
cli:
build:
dockerfile: Dockerfile
context: ../docker
environment:
- PBS_PASSWORD=${PBS_PASSWORD}
- PBS_REPOSITORY=${PBS_REPOSITORY}
- PBS_FINGERPRINT=${PBS_FINGERPRINT}
command: "snapshot list"
+13 -7
View File
@@ -1,12 +1,18 @@
FROM debian:bookworm-slim
RUN apt-get update
RUN apt install -y wget
RUN apt update && apt install -y \
curl \
wget \
python3 \
bash \
python3-yaml
RUN wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
RUN echo "deb http://download.proxmox.com/debian/pbs-client bookworm main" > /etc/apt/sources.list.d/pbs.list
RUN apt update
RUN apt install -y proxmox-backup-client
COPY ./scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
RUN apt update && apt install -y proxmox-backup-client && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT [ "proxmox-backup-client" ]
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
if [[ "$MODE" == "shell" ]]; then
"$@"
else
proxmox-backup-client "$@"
fi