Skip to content

Instantly share code, notes, and snippets.

@sylarbg
Created February 25, 2018 22:19
Show Gist options
  • Save sylarbg/59ba3b1197fdd93b818ae5431fdaee1d to your computer and use it in GitHub Desktop.
Save sylarbg/59ba3b1197fdd93b818ae5431fdaee1d to your computer and use it in GitHub Desktop.
FROM php:7.2.2-apache
LABEL Denis Georgiev
RUN useradd -ms /bin/bash -u 1337 sylar
RUN apt-get update \
&& apt-get install -y git zip unzip \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer
RUN chmod +x /usr/bin/composer
COPY start /usr/local/bin/start
RUN chmod +x /usr/local/bin/start
EXPOSE 80
ENTRYPOINT ["start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment