Dockerfiles are now mostly identical - only changing in the final.

This commit is contained in:
Joao Alves 2021-05-14 12:16:30 +01:00
parent cd2970440e
commit 0a5752c40e
2 changed files with 15 additions and 11 deletions

View file

@ -27,7 +27,9 @@ COPY *.json /var/www/html/
RUN ln -sf tinyfilemanager.php index.php
USER root
CMD [ "php", "-S", "[::]:8080", "-t", "/var/www/html" ]
EXPOSE 8080
USER root

View file

@ -8,8 +8,6 @@ RUN echo "upload_max_filesize = 128M" >> /usr/local/etc/php/conf.d/0-upload_larg
STOPSIGNAL SIGINT
ARG RUNUSER=tinyfilemanager
WORKDIR /var/www/html
RUN apk add --no-cache zip libzip openssl bzip2 \
@ -24,17 +22,21 @@ RUN apk add --no-cache zip libzip openssl bzip2 \
&& apk add --virtual .phpexts-rundeps $runDeps \
&& apk del .build-deps
COPY *.php /var/www/html/
COPY *.json /var/www/html/
COPY *.php /var/www/html/
COPY *.json /var/www/html/
RUN ln -sf tinyfilemanager.php index.php
RUN addgroup -S $RUNUSER \
&& adduser -S -G $RUNUSER $RUNUSER \
&& mkdir -p /var/www/html \
&& chown -R $RUNUSER:$RUNUSER /var/www/html
USER $RUNUSER
CMD [ "php", "-S", "[::]:8080", "-t", "/var/www/html" ]
EXPOSE 8080
ARG RUNUSER=tinyfilemanager
RUN addgroup -S $RUNUSER \
&& adduser -S -G $RUNUSER $RUNUSER \
&& mkdir -p /var/www/html \
&& chown -R $RUNUSER:$RUNUSER /var/www/html
USER $RUNUSER