author Wes Kocher <wkocher@mozilla.com>
Mon, 11 Sep 2017 17:35:09 -0700
changeset 380171 bda524beac249b64aa36016800502a34073bf35a
parent 379989 taskcluster/docker/partial-update-generator/Dockerfile@01bf0c29331e6bbee4a7bf674010ea1ebc41cb55
child 381309 a7aee415666d33258894a3c48f9435978f7c8eef
permissions -rw-r--r--
Backed out 2 changesets (bug 1342392) for bustage a=backout Backed out changeset b0e86286b173 (bug 1342392) Backed out changeset 01bf0c29331e (bug 1342392) MozReview-Commit-ID: 71fcOZ2RgEp

FROM ubuntu:vivid
MAINTAINER Rail Aliiev <rail@mozilla.com>

# Required software
ENV DEBIAN_FRONTEND noninteractive
# Chain apt-get commands with apt-get clean in a single docker RUN
# to make sure that files are removed within a single docker layer
RUN apt-get update -q && \
    apt-get install -yyq --no-install-recommends \
    python python-setuptools python-cryptography  libgetopt-simple-perl \
    bzip2 clamav clamav-freshclam python-requests python-sh curl \
    python-dev gcc liblzma-dev xz-utils && \
    apt-get clean
RUN useradd -d /home/worker -s /bin/bash -m worker
COPY requirements.txt /tmp/

# Freshclam may be flaky, retry if it fails
RUN for i in 1 2 3 4 5; do freshclam --verbose && break || sleep 15; done

# python-pip installs a lot of dependencies increasing the size of an image
# drastically. Using easy_install saves us almost 200M.
RUN easy_install pip
RUN pip install -r /tmp/requirements.txt

# scripts
RUN mkdir /home/worker/bin
COPY scripts/* /home/worker/bin/
COPY runme.sh /runme.sh
RUN chmod 755 /home/worker/bin/* /runme.sh
RUN mkdir /home/worker/keys
COPY *.pubkey /home/worker/keys/

ENV           HOME          /home/worker
ENV           SHELL         /bin/bash
ENV           USER          worker
ENV           LOGNAME       worker