blob: 91fdcb18b647714a2c941d2d96ee32627ff52b1d [file] [log] [blame]
vitalygusev507dfdb2019-05-28 12:53:55 +04001FROM ubuntu:xenial
2
3WORKDIR /app
4
5# explicitly set user/group IDs
6RUN 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
10RUN 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
21COPY requirements.txt ./
22RUN pip install -r /app/requirements.txt
23
24COPY . .
25CMD ./entrypoint.sh