diff --git a/backup/Dockerfile b/backup/Dockerfile index 713ded3..938798a 100644 --- a/backup/Dockerfile +++ b/backup/Dockerfile @@ -20,7 +20,7 @@ WORKDIR /root ARG DBPASSFILE -COPY ./ ./backup +COPY ./backup ./backup COPY ${DBPASSFILE} ./.pgpass RUN pip3 install -qr ./backup/requirements.txt --break-system-packages diff --git a/docker-compose.yml b/docker-compose.yml index 47f4553..72cba2e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,8 @@ services: backup: build: - context: ./backup + context: ./ + dockerfile: ./backup/Dockerfile args: - DBPASSFILE=${DBPASSFILE} restart: always