vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame^] | 1 | FROM ubuntu:xenial |
| 2 | |
| 3 | WORKDIR /app |
| 4 | |
| 5 | # explicitly set user/group IDs |
| 6 | RUN groupadd -r -g 999 sfnotifier && \ |
| 7 | useradd -r -g sfnotifier -u 999 -m -s /sbin/nologin -d /app -c "sf-notifier user" sfnotifier |
| 8 | |
| 9 | # Install system requirements |
| 10 | RUN apt-get update -qq && apt-get upgrade -y && \ |
| 11 | apt-get install --no-install-recommends -y -q \ |
| 12 | build-essential \ |
| 13 | python2.7 \ |
| 14 | python2.7-dev \ |
| 15 | python-pip \ |
| 16 | python-wheel \ |
| 17 | python-setuptools \ |
| 18 | curl git && \ |
| 19 | apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 20 | |
| 21 | COPY requirements.txt ./ |
| 22 | RUN pip install -r /app/requirements.txt |
| 23 | |
| 24 | COPY . . |
| 25 | CMD ./entrypoint.sh |