This commit is contained in:
Andrei Condurachi 2020-11-29 15:46:29 +02:00
parent 1486e3e145
commit 428ac7aa33
1 changed files with 6 additions and 3 deletions

View File

@ -7,9 +7,12 @@ RUN apk update && \
# Install packages # Install packages
RUN apk add --no-cache \ RUN apk add --no-cache \
autoconf \
automake \
bash \ bash \
busybox-suid \ busybox-suid \
openssh-keygen \ openssh-keygen \
mandoc \
# Init related # Init related
tini \ tini \
openrc \ openrc \
@ -51,7 +54,7 @@ RUN apk add --no-cache \
shadow shadow
# Change shell to bash # Change shell to bash
RUN usermod -s /bin/bash root && bash RUN usermod -s /bin/bash root && bash --login
# Bash config updates for root user # Bash config updates for root user
RUN cd && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" RUN cd && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
@ -114,7 +117,7 @@ RUN echo "alias l='ls -la' \
USER apache USER apache
# Change to bash # Change to bash
RUN bash RUN bash --login
# Bash config updates for apache user # Bash config updates for apache user
RUN cd && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" RUN cd && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
@ -158,4 +161,4 @@ VOLUME ["/var/www"]
COPY vhost.conf /etc/apache2/conf.d/vhost.conf COPY vhost.conf /etc/apache2/conf.d/vhost.conf
# Start PHP-FPM and Apache # Start PHP-FPM and Apache
CMD php-fpm7 -D && httpd CMD crond && php-fpm7 -D && httpd