Last active
March 29, 2022 02:31
-
-
Save petrusnog/a8aadcd36d37978f7ec07a065054db63 to your computer and use it in GitHub Desktop.
Desenvolvendo container com versões específicas de tecnologias (EM DESENVOLVIMENTO)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y sudo\ | |
wget\ | |
file\ | |
libapr1-dev\ | |
libaprutil1-dev\ | |
g++\ | |
make\ | |
libc6-dev\ | |
bison\ | |
flex\ | |
freetds-dev | |
# PCRE | |
RUN wget https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.tar.gz | |
RUN tar -xzf pcre2-10.39.tar.gz | |
RUN ./pcre2-10.39/configure --prefix=/usr/local/pcre2 | |
RUN make | |
RUN make install | |
RUN ls -la /usr/local/lib/ | |
# Apache 2.4.29 | |
RUN wget https://archive.apache.org/dist/httpd/httpd-2.4.29.tar.gz | |
RUN tar -xzf httpd-2.4.29.tar.gz | |
RUN ./httpd-2.4.29/configure DFLAGS="-O3" CFLAGS="-O3" --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --with-pcre=/usr/local/pcre2 --with-included-apr | |
RUN make | |
RUN make install | |
# PHP 7.2.4 | |
RUN wget https://www.php.net/distributions/php-7.2.4.tar.gz | |
RUN mv php-7.2.4.tar.gz /usr/local/src/php-7.2.4.tar.gz | |
RUN tar -xzf /usr/local/src/php-7.2.4.tar.gz | |
RUN rm -f /usr/local/src/php-7.2.4.tar.gz | |
RUN /usr/local/src/php-7.2.4/configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment