diff --git a/Dockerfile b/Dockerfile index 4ba1b20..e3cf606 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Bareos director Dockerfile +# PostgreSQL upgrade image FROM postgres:14-bullseye LABEL maintainer="barcus@tou.nu" @@ -6,12 +6,12 @@ LABEL maintainer="barcus@tou.nu" ARG PG_NEW RUN apt-get update \ - && apt-get install -y sudo + && apt-get install -qq -y sudo -RUN adduser postgres sudo -RUN echo '%postgres ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +RUN adduser postgres sudo \ + && echo '%postgres ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \ + && mkdir -p /var/log/postgresql -RUN mkdir -p /var/log/postgresql WORKDIR /var/log/postgresql COPY docker-entrypoint.sh /docker-entrypoint.sh