Commit a51c92f2 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

installed minio client

parent df0f98ff
...@@ -48,6 +48,10 @@ RUN chmod +x /usr/bin/installNodejs && \ ...@@ -48,6 +48,10 @@ RUN chmod +x /usr/bin/installNodejs && \
rm /usr/bin/installNodejs rm /usr/bin/installNodejs
ENV PATH /usr/local/lib/nodejs/bin:$PATH ENV PATH /usr/local/lib/nodejs/bin:$PATH
# Install Minio Client
RUN curl -o /usr/bin/mc "https://dl.min.io/client/mc/release/linux-amd64/mc" &&\
chmod +x /usr/bin/mc
FROM dependencies AS development FROM dependencies AS development
RUN sed -i 's/pid = \/run\/php\/php7.4-fpm.pid/;pid = \/run\/php\/php7.4-fpm.pid/g' /etc/php/7.4/fpm/php-fpm.conf && \ RUN sed -i 's/pid = \/run\/php\/php7.4-fpm.pid/;pid = \/run\/php\/php7.4-fpm.pid/g' /etc/php/7.4/fpm/php-fpm.conf && \
...@@ -73,8 +77,10 @@ RUN sed -i 's/pid = \/run\/php\/php7.4-fpm.pid/;pid = \/run\/php\/php7.4-fpm.pid ...@@ -73,8 +77,10 @@ RUN sed -i 's/pid = \/run\/php\/php7.4-fpm.pid/;pid = \/run\/php\/php7.4-fpm.pid
# Using image as non-root # Using image as non-root
RUN groupadd -g 1000 metager-proxy && \ RUN groupadd -g 1000 metager-proxy && \
useradd -b / -g 1000 -u 1000 -M -s /bin/bash metager-proxy useradd -b /home/metager-proxy -g 1000 -u 1000 -M -s /bin/bash metager-proxy
RUN chown -R 1000:1000 /var/lib/nginx /var/log/nginx RUN chown -R 1000:1000 /var/lib/nginx /var/log/nginx
RUN mkdir -p /home/metager-proxy &&\
chown 1000:1000 /home/metager-proxy
RUN touch /run/nginx.pid && \ RUN touch /run/nginx.pid && \
chown 1000:1000 /run/nginx.pid chown 1000:1000 /run/nginx.pid
USER 1000:1000 USER 1000:1000
...@@ -106,4 +112,7 @@ RUN chmod +x /entrypoint.sh ...@@ -106,4 +112,7 @@ RUN chmod +x /entrypoint.sh
COPY --chown=1000:1000 . /html COPY --chown=1000:1000 . /html
# Install packages
#RUN mc alias set --path=on --api S3v4 packages $S3_HOST $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY && \
USER 1000:1000 USER 1000:1000
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment