зеркало из https://github.com/mozilla/PollBot.git
30 строки
602 B
Docker
30 строки
602 B
Docker
# Mozilla PollBot server
|
|
FROM python:3.6-slim
|
|
MAINTAINER Product Delivery irc://irc.mozilla.org/#product-delivery
|
|
|
|
RUN groupadd -g 10001 pollbot && \
|
|
useradd -M -u 10001 -g 10001 -G pollbot -d /app -s /sbin/nologin pollbot
|
|
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
ENV PORT 9876
|
|
|
|
RUN buildDeps=' \
|
|
gcc \
|
|
libxml2-dev \
|
|
' && \
|
|
# install deps
|
|
apt-get update -y && \
|
|
apt-get install -y --no-install-recommends $buildDeps && \
|
|
pip install -e /app && \
|
|
# cleanup
|
|
apt-get purge -y $buildDeps && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
USER pollbot
|
|
|
|
# Start the pollbot server
|
|
CMD pollbot
|