fix(worker/mailcow): installing docker in the image instead of doing weird PATH hacks
Build and Deploy / build-docker (push) Successful in 5m17s Details

This commit is contained in:
antifallobst 2023-12-17 22:15:38 +01:00
parent 06bd717dfb
commit 066355cc53
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,8 @@ RUN SQLX_OFFLINE=true NC_AW_BACKUP_PATH=/data/backup NC_AW_HOST_PATH=/host cargo
FROM debian:bookworm-slim FROM debian:bookworm-slim
RUN apt update; apt install -y docker
COPY --from=build /nerdcult_admin_worker/target/release/admin-worker /bin/admin-worker COPY --from=build /nerdcult_admin_worker/target/release/admin-worker /bin/admin-worker
EXPOSE 6969 EXPOSE 6969

View File

@ -69,7 +69,6 @@ fn perform_backup(backup: backup::Backup) -> Result<()> {
.arg("backup") .arg("backup")
.arg("all") .arg("all")
.env("MAILCOW_BACKUP_LOCATION", &tmp) .env("MAILCOW_BACKUP_LOCATION", &tmp)
.env("PATH", "/bin:/usr/bin:/host/usr/bin")
.current_dir(&dir) .current_dir(&dir)
.status()?; .status()?;