-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
25 lines (20 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Build PHP releases with ease
# Build with: docker build -t $USER/php-build .
# Run with:
# docker run -it --rm -v$HOME/.ssh:/secure/.ssh -v$HOME/.gnupg:/secure/.gnupg -v$PWD:/php-build $USER/php-build
# This will mount your local .ssh and .gnupg directories, and use the PWD to output builds/signatures
FROM debian:jessie
MAINTAINER Davey Shafik <[email protected]>
RUN echo "mysql-server mysql-server/root_password password \"''\"" | debconf-set-selections && \
echo "mysql-server mysql-server/root_password_again password \"''\"" | debconf-set-selections
RUN apt-get update && apt-get update --fix-missing && \
apt-get install --yes build-essential mysql-server postgresql libgd-dev libxml2 libxslt1-dev \
libtidy-dev libreadline6 gettext libfreetype6 git autoconf bison re2c openssl pkg-config libssl-dev \
libbz2-dev libcurl4-openssl-dev libenchant-dev libgmp-dev libicu-dev libmcrypt-dev \
postgresql-server-dev-all libpspell-dev libreadline-dev gnupg wget \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
ENV GNUPGHOME=/secure/.gnupg
VOLUME ["/secure/.ssh", "/secure/.gnupg", "/php-build"]
COPY ./build.sh /build.sh
CMD ["/build.sh"]