blob: 91fdcb18b647714a2c941d2d96ee32627ff52b1d [file] [log] [blame]
FROM ubuntu:xenial
WORKDIR /app
# explicitly set user/group IDs
RUN groupadd -r -g 999 sfnotifier && \
useradd -r -g sfnotifier -u 999 -m -s /sbin/nologin -d /app -c "sf-notifier user" sfnotifier
# Install system requirements
RUN apt-get update -qq && apt-get upgrade -y && \
apt-get install --no-install-recommends -y -q \
build-essential \
python2.7 \
python2.7-dev \
python-pip \
python-wheel \
python-setuptools \
curl git && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY requirements.txt ./
RUN pip install -r /app/requirements.txt
COPY . .
CMD ./entrypoint.sh