From 8c57bf1fae3d1dcd0f7f6d173d0b6050491c2c7e Mon Sep 17 00:00:00 2001 From: dinsmol Date: Wed, 16 Feb 2022 09:16:47 +0300 Subject: [PATCH] Fix mkdir commands --- Dockerfile.generic | 6 +++--- Dockerfile.preinstalled_gems | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile.generic b/Dockerfile.generic index 32520834b..29424196e 100644 --- a/Dockerfile.generic +++ b/Dockerfile.generic @@ -9,8 +9,8 @@ ENV SECRET_KEY_BASE "$SECRET_KEY_BASE" RUN npm install -g yarn@"$YARN_VER" -RUN mkdir -p -v -m776 {/opt/webapps/app/tmp/pids,/opt/ca,/opt/ca/newcerts} -RUN echo -n 12 > /opt/ca/serial +RUN bash -c 'mkdir -pv -m776 {/opt/webapps/app/tmp/pids,/opt/ca,/opt/ca/newcerts}' +RUN echo -n 12 > /opt/ca/serial RUN chmod 776 /opt/ca/serial RUN echo '3A0e' > /opt/ca/crlnumber RUN chmod 776 /opt/ca/crlnumber @@ -23,4 +23,4 @@ COPY . . RUN bundle exec rails assets:precompile -EXPOSE 3000 \ No newline at end of file +EXPOSE 3000 diff --git a/Dockerfile.preinstalled_gems b/Dockerfile.preinstalled_gems index 81ec98624..0b8633422 100644 --- a/Dockerfile.preinstalled_gems +++ b/Dockerfile.preinstalled_gems @@ -9,9 +9,8 @@ ENV SECRET_KEY_BASE "$SECRET_KEY_BASE" RUN npm install -g yarn@"$YARN_VER" -RUN mkdir -p -m776 /opt/webapps/app/tmp/pids -RUN mkdir -p -m776 /opt/ca/newcerts -RUN echo -n 12 > /opt/ca/serial +RUN bash -c 'mkdir -pv -m776 {/opt/webapps/app/tmp/pids,/opt/ca,/opt/ca/newcerts}' +RUN echo -n 12 > /opt/ca/serial RUN chmod 776 /opt/ca/serial RUN echo '3A0e' > /opt/ca/crlnumber RUN chmod 776 /opt/ca/crlnumber @@ -23,4 +22,4 @@ COPY . . RUN bundle exec rails assets:precompile -EXPOSE 3000 \ No newline at end of file +EXPOSE 3000