addons-server/Dockerfile

41 строка
1.1 KiB
Docker
Исходник Обычный вид История

FROM mozillamarketplace/centos-mysql-mkt:0.2
2014-10-01 15:44:44 +04:00
# Set the locale. This is mainly so that tests can write non-ascii files to
# disk.
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Fix multilib issues when installing openssl-devel.
RUN yum install -y --enablerepo=centosplus libselinux-devel && yum clean all
ADD docker-mysql.repo /etc/yum.repos.d/mysql.repo
RUN yum update -y \
&& yum install -y \
gcc-c++ \
curl \
libjpeg-devel \
cyrus-sasl-devel \
libxml2-devel \
libxslt-devel \
nodejs \
zlib-devel \
mysql-community-libs-compat-5.6.14-3.el6.x86_64 \
&& yum clean all
2014-10-01 15:44:44 +04:00
# The version in the above image is ancient, and does not support the
# --no-binary flag used in our requirements files.
# We also need to install wheels.
RUN pip install -U pip wheel
COPY requirements /pip/requirements/
RUN cd /pip && \
pip install --build ./build --cache-dir ./cache \
--find-links https://pyrepo.addons.mozilla.org/ \
--no-index --no-deps \
-r requirements/docker.txt && \
rm -r build cache
RUN mkdir /code
WORKDIR /code