fix(worker/mailcow): installing docker in the image instead of doing weird PATH hacks
Build and Deploy / build-docker (push) Successful in 5m17s
Details
Build and Deploy / build-docker (push) Successful in 5m17s
Details
This commit is contained in:
parent
06bd717dfb
commit
066355cc53
|
@ -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
|
||||||
|
|
|
@ -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()?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue